Examples of pushRequestContext()


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

    public void testInitialiseDiallingLinkWithPrefix() throws Exception {
        final String prefix = "prefix:";

        Volantis volantis = getVolantis();
        TestMarinerPageContext context = new TestMarinerPageContext();
        context.pushRequestContext(new TestMarinerRequestContext());

        context.setVolantis(volantis);
        protocol.setMarinerPageContext(context);
        context.setProtocol(protocol);
        context.setDevice(InternalDeviceTestHelper.createTestDevice());
View Full Code Here

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

        }

        // Set up the required contexts
        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        TestMarinerPageContext context = new TestMarinerPageContext();
        context.pushRequestContext(requestContext);
        ContextInternals.setMarinerPageContext(requestContext, context);
        testable.setStyleSheetRenderer(CSSStyleSheetRenderer.getSingleton());
        context.setDeviceName("PC-Win32-IE5.5");
        protocol.setMarinerPageContext(context);
        context.setDevice(InternalDeviceTestHelper.createTestDevice());
View Full Code Here

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

        rolloverBuilder.setOverPolicy(factory.createPolicyReference("Over",
                PolicyType.IMAGE));
        //pageContext.setRollover(rollover);

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

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

        final ApplicationContext appContext =
                new ApplicationContext(requestContext);
        appContext.setEncodingManager(new EncodingManager());

        TestMarinerPageContext pageContext = new TestMarinerPageContext();
        pageContext.pushRequestContext(requestContext);

        final PolicyReferenceResolverMock referenceResolverMock =
                new PolicyReferenceResolverMock("referenceResolverMock",
                        expectations);
        pageContext.setPolicyReferenceResolver(referenceResolverMock);
View Full Code Here

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

        ApplicationContext appContext =
            new MultipartApplicationContext(requestContext);
        TestEnvironmentContext envContext =
            new TestEnvironmentContext(getClass().getName() + ".message");

        pageContext.pushRequestContext(requestContext);
        ContextInternals.setEnvironmentContext(requestContext, envContext);
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        ContextInternals.setApplicationContext(requestContext, appContext);
        appContext.setPackager(handler);
        appContext.setAssetURLRewriter(handler);
View Full Code Here

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

            public void writeOpenAnchor (
                    com.volantis.mcs.protocols.AnchorAttributes attributes) {
                assertEquals( "", value, attributes.getId());
            }
        };
        pageContext.pushRequestContext(requestContext);
        pageContext.setProtocol(protocol);
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        protocol.setMarinerPageContext(pageContext);
       
        AnchorElementImpl element = new AnchorElementImpl();
View Full Code Here

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

    private Element setUpTableAttributesBorderSpacingTests(int borderSpacing)
            throws Exception {
        // Set up the required contexts
        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        TestMarinerPageContext context = new TestMarinerPageContext();
        context.pushRequestContext(requestContext);
        ContextInternals.setMarinerPageContext(requestContext, context);
        testable.setStyleSheetRenderer(CSSStyleSheetRenderer.getSingleton());
        context.setDeviceName("PC-Win32-IE5.5");
        protocol.setMarinerPageContext(context);
        testable.setUpCssEmulation(true);
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.