Package com.volantis.mcs.context

Examples of com.volantis.mcs.context.TestEnvironmentContext


        dlc.setMarinerPageContext(context);
        dlc.setDeviceLayout(runtimeDeviceLayout);
        //dlc.initialise();
        context.pushDeviceLayoutContext(dlc);
        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        ContextInternals.setEnvironmentContext(requestContext, new TestEnvironmentContext());
        context.pushRequestContext(requestContext);
        ContextInternals.setMarinerPageContext(requestContext, context);

        DOMOutputBuffer dom = new DOMOutputBuffer();
        dom.initialise();
View Full Code Here


    public void setUp() throws Exception {
        super.setUp();
        attrsAttributes = createTestableAttrsAttributes();
        requestContext = new TestMarinerRequestContext();
        ContextInternals.setEnvironmentContext(requestContext,
                                               new TestEnvironmentContext());

        pageContext = new TestMarinerPageContext();
        requestContext.setMarinerPageContext(pageContext);
        protocol = new VolantisProtocolStub();
        pageContext.setProtocol(protocol);
View Full Code Here

        XFFormFieldElementImpl element =
                (XFFormFieldElementImpl)createTestablePAPIElement();

        TestMarinerPageContext pageContext = new TestMarinerPageContext();
        TestMarinerRequestContext requestContext = new TestMarinerRequestContext();
        TestEnvironmentContext environmentContext = new TestEnvironmentContext();
        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                InternalDeviceTestHelper.createTestDevice());
View Full Code Here

    private void privateSetUp() throws RepositoryException {
        pageContext = new TestMarinerPageContext();
        requestContext = new TestMarinerRequestContext();
        // Register a dummy EnvironmentContext against the request context
        ContextInternals.setEnvironmentContext(requestContext,
                                               new TestEnvironmentContext());
        VolantisProtocol protocol = new VolantisProtocolStub();       
        pageContext.setProtocol(protocol);
        pageContext.setPageGenerationCache(new PageGenerationCache());
        pageContext.setRequestURL(
                new MarinerURL("http://server:8080/volantis/test.xdime"));
View Full Code Here

        // create a dummy MarinerRequestContext
        MarinerRequestContext requestContext = new TestMarinerRequestContext();

        // Register a dummy EnvironmentContext against the request context
        ContextInternals.setEnvironmentContext(requestContext,
                                               new TestEnvironmentContext());

        // =====================================================================
        //   Create Mocks
        // =====================================================================
View Full Code Here

        formInstance.setFormat(form);
        attributes.setFormData(formInstance);

        TestMarinerRequestContext requestContext = new TestMarinerRequestContext();
        ContextInternals.setEnvironmentContext(requestContext,
                new TestEnvironmentContext());

        TestMarinerPageContext pageContext = new TestMarinerPageContext();
        FormDescriptor fd = new FormDescriptor();
        String formSpecifier =
                pageContext.getFormDataManager().getFormSpecifier(fd);
View Full Code Here

        // Set up the normal testing page and request contexts
        TestMarinerRequestContext requestContext = new TestMarinerRequestContext();
        pageContext.pushRequestContext(requestContext);
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        ContextInternals.setEnvironmentContext(requestContext,
                new TestEnvironmentContext());

        // Set up fragmentation specific prerequisites.
        // Set up an app context so we can enable fragmentation.
        ApplicationContext appContext = new ApplicationContext(requestContext);
        ContextInternals.setApplicationContext(requestContext, appContext);
View Full Code Here

        // Set up the normal testing page and request contexts
        TestMarinerRequestContext requestContext = new TestMarinerRequestContext();
        pageContext.pushRequestContext(requestContext);
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        ContextInternals.setEnvironmentContext(requestContext,
                new TestEnvironmentContext());

        // Set up fragmentation specific prerequisites.
        // Set up an app context so we can enable fragmentation.
        ApplicationContext appContext = new ApplicationContext(requestContext);
        ContextInternals.setApplicationContext(requestContext, appContext);
View Full Code Here

        // Intitialise the context
        pageContext.pushRequestContext(requestContext);
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        ContextInternals.setEnvironmentContext(requestContext,
                new TestEnvironmentContext());
        Pane testPane = new Pane(layout);
        testPane.setName("pane");
        pageContext.addPaneMapping(testPane);

        // Activate the device layout.
View Full Code Here

        pageContext.setPolicyReferenceResolver(referenceResolverMock);

        referenceResolverMock.expects.resolveQuotedTextExpression(null)
                .returns(null).any();

        EnvironmentContext envContext = new TestEnvironmentContext();
        ContextInternals.setEnvironmentContext(requestContext, envContext);

        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        ContextInternals.setApplicationContext(requestContext, appContext);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.context.TestEnvironmentContext

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.