}
}
}
public void testMultipleAxes() throws Exception {
MdxParser p = createParser();
String query = "select {[axis0mbr]} on axis(0), "
+ "{[axis1mbr]} on axis(1) from cube";
SelectNode select = p.parseSelect(query);
assertNotNull(select);
List<AxisNode> axes = select.getAxisList();
assertEquals("Number of axes", 2, axes.size());
assertEquals(
"Axis index name must be correct",
Axis.Factory.forOrdinal(0),
axes.get(0).getAxis());
assertEquals(
"Axis index name must be correct",
Axis.Factory.forOrdinal(1),
axes.get(1).getAxis());
// now a similar query with axes reversed
query = "select {[axis1mbr]} on aXiS(1), "
+ "{[axis0mbr]} on AxIs(0) from cube";
select = p.parseSelect(query);
axes = select.getAxisList();
assertEquals("Number of axes", 2, axes.size());
assertEquals(
"Axis index name must be correct",