Skip to content

Commit

Permalink
adapt QM tests to new filter behaviour (set instead of tuple)
Browse files Browse the repository at this point in the history
git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@355 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
pstoellberger committed Oct 8, 2010
1 parent 633b604 commit 3d67870
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions testsrc/org/olap4j/OlapTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ public void testSortDimension() {
+ "{[Measures].[Store Sales]} ON COLUMNS,\n"
+ "{{[Product].[Drink], [Product].[Drink].Children}} ON ROWS\n"
+ "FROM [Sales]\n"
+ "WHERE ([Time].[1997].[Q3].[7])",
+ "WHERE {[Time].[1997].[Q3].[7]}",
mdxString);

// Sort the products in ascending order.
Expand All @@ -476,7 +476,7 @@ public void testSortDimension() {
+ "{[Measures].[Store Sales]} ON COLUMNS,\n"
+ "{Order({{[Product].[Drink], [Product].[Drink].Children}}, [Product].CurrentMember.Name, DESC)} ON ROWS\n"
+ "FROM [Sales]\n"
+ "WHERE ([Time].[1997].[Q3].[7])",
+ "WHERE {[Time].[1997].[Q3].[7]}",
sortedMdxString);

CellSet results = query.execute();
Expand Down Expand Up @@ -654,7 +654,7 @@ public void testSortAxis() {
+ "{[Measures].[Store Sales]} ON COLUMNS,\n"
+ "{{[Product].[Drink], [Product].[Drink].Children}} ON ROWS\n"
+ "FROM [Sales]\n"
+ "WHERE ([Time].[1997].[Q3].[7])",
+ "WHERE {[Time].[1997].[Q3].[7]}",
mdxString);

// Sort the rows in ascending order.
Expand All @@ -670,7 +670,7 @@ public void testSortAxis() {
+ "{[Measures].[Store Sales]} ON COLUMNS,\n"
+ "Order({{[Product].[Drink], [Product].[Drink].Children}}, [Measures].[Store Sales], BASC) ON ROWS\n"
+ "FROM [Sales]\n"
+ "WHERE ([Time].[1997].[Q3].[7])",
+ "WHERE {[Time].[1997].[Q3].[7]}",
sortedMdxString);

CellSet results = query.execute();
Expand Down Expand Up @@ -942,7 +942,7 @@ public void testExclusionModes() {
+ "{[Measures].[Sales Count]} ON COLUMNS,\n"
+ "{[Product].[Drink].[Beverages].Children, [Product].[Food].[Frozen Foods].Children} ON ROWS\n"
+ "FROM [Sales]\n"
+ "WHERE ([Time].[1997].[Q3].[7])",
+ "WHERE {[Time].[1997].[Q3].[7]}",
mdxString);

// Validate the returned results
Expand Down Expand Up @@ -992,7 +992,7 @@ public void testExclusionModes() {
+ "{[Measures].[Sales Count]} ON COLUMNS,\n"
+ "{Except({[Product].[Drink].[Beverages].Children, [Product].[Food].[Frozen Foods].Children}, {[Product].[Drink].[Beverages].[Carbonated Beverages]})} ON ROWS\n"
+ "FROM [Sales]\n"
+ "WHERE ([Time].[1997].[Q3].[7])",
+ "WHERE {[Time].[1997].[Q3].[7]}",
mdxString);

// Validate the returned results
Expand Down

0 comments on commit 3d67870

Please sign in to comment.