Package com.volantis.mcs.expression.functions.diselect

Examples of com.volantis.mcs.expression.functions.diselect.DIGridFunction.execute()


     * default value is invalid, the function evaluates to FALSE.
     */
    public void testExecuteWithInvalidDefaultValue() {

        DIGridFunction function = new DIGridFunction();
        Value result = function.execute(exprContext, accessorMock, INVALID_DEFAULT);
        // expect the result to be false because default value was wrong type
        assertEquals(BooleanValue.FALSE, result);
    }

    /**
 
View Full Code Here


     * default value is specifed, the function evaluates to FALSE.
     */
    public void testExecuteWithNoDefaultValue() {

        DIGridFunction function = new DIGridFunction();
        Value result = function.execute(exprContext, accessorMock, null);
        // expect the result to be false because no default value was specified
        assertEquals(BooleanValue.FALSE, result);
    }

    /**
 
View Full Code Here

     * default value is valid, the function evaluates to the default value.
     */
    public void testExecuteWithValidDefaultValue() {

        DIGridFunction function = new DIGridFunction();
        Value result = function.execute(exprContext, accessorMock,
                BooleanValue.TRUE);
        // expect the result to be the default value
        assertEquals(BooleanValue.TRUE, result);
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.