Package com.volantis.mcs.runtime

Examples of com.volantis.mcs.runtime.RuntimeProjectMock


        pageContext = new TestMarinerPageContext();
        requestContext.setMarinerPageContext(pageContext);
        protocol = new VolantisProtocolStub();
        pageContext.setProtocol(protocol);
       
        final RuntimeProjectMock projectMock =
                new RuntimeProjectMock("projectMock", expectations);

        requestContext.pushProject(projectMock);
        pageContext.pushRequestContext(requestContext);
    }
View Full Code Here


        pageContext.setDeviceLayout(runtimeDeviceLayout);
        pageContext.setForm(form);

        // Create a project to push onto the stack.
        final RuntimeProjectMock runtimeProjectMock =
                new RuntimeProjectMock("runtimeProjectMock", expectations);

        requestContext.pushProject(runtimeProjectMock);
        pageContext.pushRequestContext(requestContext);

        // Create the XFImplicit element and attributes
View Full Code Here

        MarinerServletRequestContext requestContext;
        HttpServletRequest servletRequest = new MockHTTPServletRequest();

        requestContext = new MockMarinerServletRequestContext(servletRequest, new MockHTTPServletResponse());

        Project project = new RuntimeProjectMock("projectMock", expectations);
//        requestContext.pushProject(project);

        EnvironmentContext environmentContext = new ServletEnvironmentContext(
                requestContext);
        ContextInternals.setEnvironmentContext(requestContext,
View Full Code Here

        // =====================================================================
        //   Create Mocks
        // =====================================================================

        final RuntimeProjectMock projectMock =
                new RuntimeProjectMock("projectMock", expectations);

        // =====================================================================
        //   Set Expectations
        // =====================================================================
View Full Code Here

                new TestEnvironmentContext());
        testRequestContext.setMarinerPageContext(context);
        context.setRequestContext(testRequestContext);

        // Create a project to push onto the stack.
        final RuntimeProjectMock projectMock =
                new RuntimeProjectMock("projectMock", expectations);
        testRequestContext.pushProject(projectMock);
        context.pushDeviceLayoutContext(new DeviceLayoutContext());
        context.setRequestContext(testRequestContext);
        canvasLayout = new CanvasLayout();
    }
View Full Code Here

     *               on that policy source having values.
     *
     * @return An initialized instance of a RuntimeProject
     */
    protected RuntimeProject createTestProject(PolicySource source) {
        final RuntimeProjectMock runtimeProjectMock =
                new RuntimeProjectMock("runtimeProjectMock", expectations);
        return runtimeProjectMock;
    }
View Full Code Here

                "expressionContextMock", expectations);

        expressionFactoryMock = new ExpressionFactoryMock(
                "expressionFactoryMock", expectations);

        projectMock = new RuntimeProjectMock("projectMock", expectations);

        final CurrentProjectProviderMock projectProviderMock =
                new CurrentProjectProviderMock("projectProviderMock",
                        expectations);
View Full Code Here

    // javadoc inherited
    protected void setUp() throws Exception {
        super.setUp();

        project = new RuntimeProjectMock("projectMock", expectations);

        expressionFactory = ExpressionFactory.getDefaultInstance();

        expressionContext = expressionFactory.createExpressionContext(
                null,
View Full Code Here

        // =====================================================================
        //   Create Mocks
        // =====================================================================

        projectMock = new RuntimeProjectMock("projectMock", expectations);

        projectManagerMock = new ProjectManagerMock("projectManagerMock",
                expectations);

        locatedProjectMock = new RuntimeProjectMock("locatedProjectMock",
                expectations);

        absoluteBaseURL = new MarinerURL("file:/a/b/");

        globalProjectMock = new RuntimeProjectMock("globalProjectMock",
                expectations);

        // =====================================================================
        //   Set Expectations
        // =====================================================================
View Full Code Here

        readerMock = new PolicyBuilderReaderMock("readerMock",
                expectations);

        actualProjectMock =
                new RuntimeProjectMock("actualProjectMock", expectations);

        actualReaderMock = new PolicyBuilderReaderMock("actualReaderMock",
                expectations);

        activatorMock = new PolicyActivatorMock("activatorMock", expectations);

        projectManagerMock =
                new ProjectManagerMock("projectManagerMock", expectations);

        globalProjectMock =
                new RuntimeProjectMock("globalProjectMock", expectations);

        globalReaderMock = new PolicyBuilderReaderMock("globalReaderMock",
                expectations);

        builderMock = new PolicyBuilderMock("builderMock", expectations);

        policyMock = new ActivatedPolicyMock("policyMock", expectations);

        projectMock = new RuntimeProjectMock("projectMock", expectations);

        // =====================================================================
        //   Set Expectations
        // =====================================================================
View Full Code Here

TOP

Related Classes of com.volantis.mcs.runtime.RuntimeProjectMock

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.