Search in sources :

Example 1 with ResultStyle

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);
}
Also used : ResultStyle(mondrian.calc.ResultStyle) SetListCalc(mondrian.olap.fun.SetFunDef.SetListCalc) Calc(mondrian.calc.Calc)

Aggregations

Calc (mondrian.calc.Calc)1 ResultStyle (mondrian.calc.ResultStyle)1 SetListCalc (mondrian.olap.fun.SetFunDef.SetListCalc)1