use of mondrian.calc.ResultStyle in project mondrian by pentaho.
the class IifFunDefTest method testGetResultType.
public void testGetResultType() {
ResultStyle actualResStyle = null;
ResultStyle expectedResStyle = setListCalc.getResultStyle();
// Compile calculation for IIf function for (<Logical Expression>, <SetType>, <SetType>) params
Calc calc = IifFunDef.SET_INSTANCE.compileCall(call, compilerMock);
try {
actualResStyle = calc.getResultStyle();
} catch (Exception e) {
fail("Should not have thrown any exception.");
}
assertNotNull(actualResStyle);
assertEquals(expectedResStyle, actualResStyle);
}
Aggregations