Examples of execute()


Examples of com.volantis.map.operation.Operation.execute()

                        };
                        LOGGER.error("service-has-been-unregistered", params);
                    } else {
                        Operation operation =
                            (Operation) service;
                        result  = operation.execute(
                            descriptor, request, response);
                    }
                }
                if (result == Result.UNSUPPORTED) {
                    throw new OperationNotFoundException(
View Full Code Here

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

                DevicePolicyConstants.ACTUAL_WIDTH_IN_PIXELS).
                returns(pixelWidth);

        // test!
        DIAspectRatioFunction function = getFunction();
        Value result = function.execute(exprContext, accessorMock,
                defaultValue);

        // checks that result is as expected
        if (outputFormat ==
                DIAspectRatioFunction.AspectRatioOutputFormat.RATIO) {
View Full Code Here

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

        accessorMock.expects.getDependentPolicyValue(
                DevicePolicyConstants.PIXEL_DEPTH).returns(pixelDepth);

        // test!
        DIColorFunction function = new DIColorFunction();
        Value result = function.execute(exprContext, accessorMock,
                defaultValue);

        // checks that result is as expected
        assertTrue(result instanceof SimpleIntValue);
        assertTrue(expectedValue.asJavaInt() ==
View Full Code Here

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

        accessorMock.expects.getDependentPolicyValue(
                DevicePolicyConstants.PALETTE).returns(paletteSize);

        // test!
        DIColorIndexFunction function = new DIColorIndexFunction();
        Value result = function.execute(exprContext, accessorMock,
                defaultValue);

        // checks that result is as expected
        assertTrue(result instanceof SimpleIntValue);
        assertTrue(expectedValue.asJavaInt() ==
View Full Code Here

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

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

        // set up expectations
        accessorMock.expects.getDependentPolicyValue(
                DevicePolicyConstants.RENDER_MODE).returns(renderMode);

        DIMonochromeFunction function = new DIMonochromeFunction();
        Value result = function.execute(exprContext, accessorMock,
                defaultValue);
        assertTrue(result instanceof SimpleIntValue);
        assertTrue(expectedResult == ((SimpleIntValue)result).asJavaInt());
    }
View Full Code Here

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

        accessorMock.expects.getDependentPolicyValue(mmWidthPolicyName).
                returns(widthInMm);

        // test!
        DIResolutionFunction function = new DIResolutionFunction();
        Value result = function.execute(exprContext,
                units, defaultValue);

        // expect the result to be the default
        assertTrue(result instanceof SimpleDoubleValue);
        assertTrue( expectedResolution ==
View Full Code Here

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

     * an empty string.
     */
    public void testExecuteWithInvalidDefaultValue() {

        DIScanFunction function = new DIScanFunction();
        Value result = function.execute(exprContext, accessorMock,
                INVALID_DEFAULT);
        // expect the result to be "" because default value was wrong type
        assertTrue(result instanceof StringValue);
        assertEquals(EMPTY_VALUE, ((StringValue)result).asJavaString());
    }
View Full Code Here

Examples of com.volantis.mcs.interaction.impl.operation.SetModelObjectOperation.execute()

        // =====================================================================
        //   Test Expectations
        // =====================================================================
        Operation operation = new SetModelObjectOperation(
                internalProxyMock, NEW_MODEL_OBJECT);
        operation.execute();
    }

    private void addInitialiseExpectations(OrderedExpectations expectations) {
        expectations.add(
                new UnorderedExpectations() {
View Full Code Here

Examples of com.volantis.shared.net.http.HttpGetMethod.execute()

                    "policySet");

            // todo The policy may not exist but the project may in which case
            // todo this should load the project and then try and load the
            // todo policy from a fallback (if any).
            HttpStatusCode code = method.execute();
            if (code == HttpStatusCode.OK) {

                project = updateProject(project, method);

                InputStream in = method.getResponseBodyAsStream();
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.