Package com.volantis.mcs.context

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


     */
    public void testOpenAction() {
        privateSetUp();

        TestMarinerPageContext mpc = new TestMarinerPageContext();
        mpc.pushRequestContext( new TestMarinerRequestContext());

        ProtocolsConfiguration config = new ProtocolsConfiguration();
        config.setWmlPreferredOutputFormat("wmlc");
        Volantis bean = new Volantis();
        bean.setProtocolsConfiguration(config);
View Full Code Here


        privateSetUp();

        MarinerRequestContext requestContext
                = new TestMarinerRequestContext();
        TestMarinerPageContext context = new TestMarinerPageContext();
        context.pushRequestContext(requestContext);
        protocol.setMarinerPageContext(context);

        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();
        context.setCurrentOutputBuffer(buffer);
View Full Code Here

        MarinerRequestContext requestContext = new TestMarinerRequestContext();

        TestMarinerPageContext context =
            (TestMarinerPageContext)protocol.getMarinerPageContext();

        context.pushRequestContext(requestContext);
        ContextInternals.setMarinerPageContext(requestContext, context);

        PaneInstance paneInstance = new TestPaneInstance() {
            public OutputBuffer getCurrentBuffer() {
                return buffer;
View Full Code Here

        // create and initialise the MarinerPageContext
        TestMarinerPageContext pageContext = new TestMarinerPageContext();
        MarinerRequestContext requestContext = new TestMarinerRequestContext();

        pageContext.pushRequestContext(requestContext);
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        PaneInstance paneInstance = new TestPaneInstance() {
            public OutputBuffer getCurrentBuffer() {
                // return the output buffer that the base class has created
                return outputBuffer;
View Full Code Here

    private void privateSetUp() {
        TestMarinerPageContext context = new TestMarinerPageContext();
        TestMarinerRequestContext requestContext =
                new TestMarinerRequestContext();
        ContextInternals.setMarinerPageContext(requestContext, context);
        context.pushRequestContext(requestContext);

        DeviceLayoutContext deviceContext = new TestDeviceLayoutContext();
        canvasLayout = new CanvasLayout();

        // Activate the device layout.
View Full Code Here

        privateSetUp();

        MarinerRequestContext requestContext
                = new TestMarinerRequestContext();
        TestMarinerPageContext context = new TestMarinerPageContext();
        context.pushRequestContext(requestContext);
        protocol.setMarinerPageContext(context);

        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();
        context.setCurrentOutputBuffer(buffer);
View Full Code Here

     */
    public void testWriteImage()
        throws Exception {
        privateSetUp();
        TestMarinerPageContext context = new TestMarinerPageContext();
        context.pushRequestContext(requestContext);
        protocol.setMarinerPageContext(context);
        DOMOutputBuffer buffer = new TestDOMOutputBuffer();
        context.setCurrentOutputBuffer(buffer);
        context.setCurrentPane(new Pane(new CanvasLayout()));

View Full Code Here

    }

    public void testWritePageHead() throws Exception {
        privateSetUp();
        TestMarinerPageContext context = new TestMarinerPageContext();
        context.pushRequestContext(requestContext);
        context.setBooleanDevicePolicyValue(DOMProtocol.SUPPORTS_JAVASCRIPT, true);
        protocol.setMarinerPageContext(context);
        context.setProtocol(protocol);

        protocol.writePageHead();
View Full Code Here

        privateSetUp();

        MarinerRequestContext requestContext
            = new TestMarinerRequestContext();
        TestMarinerPageContext context = new TestMarinerPageContext();
        context.pushRequestContext(requestContext);
        protocol.setMarinerPageContext(context);
        DOMOutputBuffer buffer = new TestDOMOutputBuffer();
        context.setCurrentOutputBuffer(buffer);
        InternalDevice d = INTERNAL_DEVICE_FACTORY.createInternalDevice(
            new DefaultDevice("Netscape4", new HashMap(), null));
View Full Code Here

    public void testAddAnchorAttributesLinkStyle() 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);
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.