Skip to content

Commit

Permalink
make sure, that the testSample2 query (Warehouse cube) does not retur…
Browse files Browse the repository at this point in the history
…n an empty result (problem with shared hierarchies).

[git-p4: depot-paths = "//open/mondrian/": change = 219]
  • Loading branch information
hhaas committed Oct 28, 2002
1 parent 834d0b2 commit fc2ce2e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/mondrian/test/FoodMartTestCase.java
Expand Up @@ -228,7 +228,16 @@ public void testSample2() {
" { [Measures].[Units Shipped], [Measures].[Units Ordered] } on columns," + nl +
" NON EMPTY [Store].[Store Name].members on rows" + nl +
"from Warehouse");
}
// make sure, that the result is not empty (problem with shared hierarchies)
Axis[] axes = result.getAxes();
int nCells = 1;
for ( int i = 0; i < axes.length; i++ ) {
Position[] positions = axes[i].positions;
nCells = nCells * positions.length;
}
// expecting 2 cols and 13 rows
assertTrue( nCells == 26 );
}

public void testSample3() {
Result result = runQuery(
Expand Down

0 comments on commit fc2ce2e

Please sign in to comment.