Package com.volantis.mcs.context

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


        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        TestMarinerPageContext testContext = new TestMarinerPageContext();
        testContext.pushRequestContext(requestContext);
        ContextInternals.setMarinerPageContext(requestContext, testContext);
        protocol.setMarinerPageContext(testContext);

        ParagraphAttributes paraAttrs = new ParagraphAttributes();
        paraAttrs.setStyles(StylesBuilder.getCompleteStyles(
View Full Code Here


        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        TestMarinerPageContext testContext = new TestMarinerPageContext();
        testContext.pushRequestContext(requestContext);
        ContextInternals.setMarinerPageContext(requestContext, testContext);
        protocol.setMarinerPageContext(testContext);

        // The default paragraph attributes has no class attribute.
        ParagraphAttributes attributes = new ParagraphAttributes();
View Full Code Here

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

        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(), null);
        final TestMarinerPageContext pageContext = new TestMarinerPageContext();

        pageContext.pushRequestContext(requestContext);
        pageContext.setProtocol(protocol);
        pageContext.setPageGenerationCache(new PageGenerationCache());
        pageContext.setRequestURL(
                new MarinerURL("http://server:8080/volantis/test.xdime"));
View Full Code Here


        MarinerRequestContext requestContext =
                ProtocolTestAbstract.initialiseMarinerRequestContext(
                        expectations);
        pageContext.pushRequestContext(requestContext);

        protocol.setMarinerPageContext(pageContext);
        protocol.initialise();
        protocol.initialiseCanvas();
        protocol.initialisePageHead();
View Full Code Here

        TestMarinerPageContext pageContext = new TestMarinerPageContext();
        FormDescriptor fd = new FormDescriptor();
        String formSpecifier =
                pageContext.getFormDataManager().getFormSpecifier(fd);
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        pageContext.pushRequestContext(requestContext);
        protocol.setMarinerPageContext(pageContext);

        String result = protocol.getInitialValue(attributes);
        assertEquals(null, result);
View Full Code Here

     */
    public void notestInitialisePreferredLocationFor() throws Exception {
        Volantis volantis = getVolantis();

        TestMarinerPageContext context = new TestMarinerPageContext();
        context.pushRequestContext(new TestMarinerRequestContext());
        context.setVolantis(volantis);
        protocol.setMarinerPageContext(context);
        context.setProtocol(protocol);
        context.setDevice(InternalDeviceTestHelper.createTestDevice());
        context.setDevicePolicyValue(
View Full Code Here

     */
    protected void doAccesskeySupportTest(String accesskeyValue,
                                        boolean expected) {
        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

    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

        }

        // 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

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.