Skip to content

Commit

Permalink
MONDRIAN - Fixed testcase so it runs on Derby.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian/": change = 7926]
  • Loading branch information
Zelaine Fong committed Oct 13, 2006
1 parent 39e73e2 commit f8496cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testsrc/main/mondrian/rolap/aggmatcher/BUG_1541077.java
Expand Up @@ -110,13 +110,13 @@ public void testBug1541077() throws Exception {
String mdx = "select {[Measures].[Avg Amount]} on columns from Cheques";

Result result = getCubeTestContext().executeQuery(mdx);
Object v = result.getCell(new int[]{0}).getValue();
Object v = result.getCell(new int[]{0}).getFormattedValue();

// get value with aggregates
props.UseAggregates.setString("true");

Result result1 = getCubeTestContext().executeQuery(mdx);
Object v1 = result1.getCell(new int[]{0}).getValue();
Object v1 = result1.getCell(new int[]{0}).getFormattedValue();

assertTrue(v.equals(v1));
}
Expand Down Expand Up @@ -198,7 +198,7 @@ protected String getCubeDescription() {
" formatString='#,###'/>\n" +
"<Measure name='Avg Amount' \n" +
" column='amount' aggregator='avg'\n" +
" formatString='00.00'/>\n" +
" formatString='00.0'/>\n" +
"</Cube>";

}
Expand Down

0 comments on commit f8496cb

Please sign in to comment.