use of mondrian.olap.MondrianProperties in project mondrian by pentaho.
the class BUG_1541077 method testSalesCount.
public void testSalesCount() throws Exception {
if (!isApplicable()) {
return;
}
MondrianProperties props = MondrianProperties.instance();
// get value without aggregates
propSaver.set(props.UseAggregates, false);
String mdx = "select {[Measures].[Sales Count]} on columns from Cheques";
Result result = getTestContext().executeQuery(mdx);
Object v = result.getCell(new int[] { 0 }).getValue();
propSaver.set(props.UseAggregates, true);
Result result1 = getTestContext().executeQuery(mdx);
Object v1 = result1.getCell(new int[] { 0 }).getValue();
assertTrue(v.equals(v1));
}
Aggregations