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

Examples of com.volantis.mcs.expression.functions.diselect.DIGridFunction


     * Verify that when no value can be retrieved from the repository and the
     * 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


     * Verify that when no value can be retrieved from the repository and no
     * 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

     * Verify that when no value can be retrieved from the repository and the
     * 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

Related Classes of com.volantis.mcs.expression.functions.diselect.DIGridFunction

Copyright © 2018 www.massapicom. 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.