Package com.volantis.mcs.context

Examples of com.volantis.mcs.context.TestMarinerPageContext.pushRequestContext()


        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();
        XFFormAttributes attributes = new XFFormAttributes();
View Full Code Here


                        expectations, mockFactory));

        MyVolantisProtocolStub protocol = new MyVolantisProtocolStub();
        pageContext.setProtocol(protocol);
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        pageContext.pushRequestContext(requestContext);

        protocol.setMarinerPageContext(pageContext);

        // Subset of initial values should be null
        assertNotNull(pattributes);
View Full Code Here

        ContextInternals.setEnvironmentContext(requestContext, environmentContext);
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        MCSExpressionHelper.setExpressionContext(requestContext, expressionContext);

        pageContext.pushRequestContext(requestContext);
        pageContext.setProtocol(protocol);

        ExpressionSupport.registerFunctions(expressionContext);
        expressionContext.setProperty(MarinerRequestContext.class,
                                      requestContext,
View Full Code Here

        MarinerRequestContext requestContext;

//        Volantis volantisBean = new Volantis();
        requestContext = initialiseMarinerRequestContext(expectations);

        context.pushRequestContext(requestContext);
        protocol.setMarinerPageContext(context);
        protocol.initialise();
        context.setProtocol(protocol);
    }
View Full Code Here

                        expectations);
        pageContext.setPolicyReferenceResolver(referenceResolverMock);

        // Link everything together
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        pageContext.pushRequestContext(requestContext);
        protocol.setMarinerPageContext(pageContext);

        // Finally, test the required method
        command.execute(pageContext, element);
    }
View Full Code Here

        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                InternalDeviceTestHelper.createTestDevice());

        pageContext.pushRequestContext(requestContext);
        pageContext.setProtocol(protocol);

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

    public void testElementStartImpl() throws Exception {
        PAPIElement element = createTestablePAPIElement();
        TestMarinerPageContext pageContext = new TestMarinerPageContext();
        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        VolantisProtocol protocol = new VolantisProtocolStub();
        pageContext.pushRequestContext(requestContext);
        pageContext.setProtocol(protocol);
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        protocol.setMarinerPageContext(pageContext);

        pageContext.setPolicyReferenceResolver(
View Full Code Here

        });
       
        TestMarinerRequestContext requestContext
            = new TestMarinerRequestContext();
        TestMarinerPageContext pageContext = new TestMarinerPageContext();
        pageContext.pushRequestContext(requestContext);
        pageContext.setRequestURL(
            new MarinerURL("http://www.my.com/page2.jsp;jsessionid=123"));
        pageContext.setVolantis(volantis);
        return pageContext;
    }
View Full Code Here

        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                InternalDeviceTestHelper.createTestDevice());

        pageContext.pushRequestContext(requestContext);
        pageContext.setProtocol(protocol);

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

        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                InternalDeviceTestHelper.createTestDevice());

        pageContext.pushRequestContext(requestContext);
        pageContext.setProtocol(protocol);

        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        protocol.setMarinerPageContext(pageContext);
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.