Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.TestDeviceLayoutContext


     * WMLRoot's method.
     */
    public void testOpenCard() throws ProtocolException {

        privateSetUp();
        pageContext.pushDeviceLayoutContext(new TestDeviceLayoutContext() {
            public OutputBuffer getOutputBuffer(String name, boolean create) {
                return buffer;
            }
        });
        assertNull(protocol.initialFocusElement);
View Full Code Here


        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        context = new TestMarinerPageContext();
        context.pushRequestContext(requestContext);
        context.setDeviceLayout(runtimeDeviceLayout);
        DeviceLayoutContext deviceContext = new TestDeviceLayoutContext();
        deviceContext.setDeviceLayout(runtimeDeviceLayout);
        context.pushDeviceLayoutContext(deviceContext);
        ContextInternals.setMarinerPageContext(requestContext, context);
        protocol.setMarinerPageContext(context);

        PaneInstance paneInstance = new TestPaneInstance();
View Full Code Here

    private DOMOutputBuffer setupForPaneTests(PaneRendering rendering,
                                              PaneAttributes attributes) {
        context = new TestMarinerPageContext();

        DOMOutputBuffer dom = new DOMOutputBuffer();
        TestDeviceLayoutContext deviceLayoutContext = new TestDeviceLayoutContext();

        // Intialize the dom
        dom.initialise();

        // Intialize the context.
View Full Code Here

        pane.setName("TestPane");               
       
        paneInstance = new TestPaneInstance();
        paneInstance.setFormat(pane);
       
        deviceLayoutContext = new TestDeviceLayoutContext();
        deviceLayoutContext.setFormatInstance(pane,
                NDimensionalIndex.ZERO_DIMENSIONS, paneInstance);

        paneInstance.setDeviceLayoutContext(deviceLayoutContext);
View Full Code Here

        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        context = new TestMarinerPageContext();
        context.pushRequestContext(requestContext);
        context.setDeviceLayout(runtimeDeviceLayout);
        DeviceLayoutContext deviceContext = new TestDeviceLayoutContext();

        deviceContext.setDeviceLayout(runtimeDeviceLayout);
        context.pushDeviceLayoutContext(deviceContext);
        ContextInternals.setMarinerPageContext(requestContext, context);
        protocol.setMarinerPageContext(context);

        PaneInstance paneInstance = new TestPaneInstance();
View Full Code Here

        testPane.setName(pane);
        pageContext.addPaneMapping(testPane);

        PaneInstance paneInstance = new TestPaneInstance();
        paneInstance.setFormat(testPane);
        TestDeviceLayoutContext deviceLayoutContext =
                new TestDeviceLayoutContext();
        deviceLayoutContext.setFormatInstance(testPane,
                NDimensionalIndex.ZERO_DIMENSIONS, paneInstance);
        pageContext.pushDeviceLayoutContext(deviceLayoutContext);
        pageContext.setFormatInstance(paneInstance);

        MenuModelBuilder menuModelBuilder = pageContext.getMenuBuilder();
View Full Code Here

    public void setUp() {
        pane = new Pane(null);
        paneContext = new TestPaneInstance();

        deviceLayoutContext = new TestDeviceLayoutContext();

        tfi2 = new TemporalFormatIterator(null);
        tfi2.setInstance(0);

        tfi2Instance = new TemporalFormatIteratorInstance(
View Full Code Here

        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        context = new TestMarinerPageContext();
        context.pushRequestContext(requestContext);
        context.setDeviceLayout(runtimeDeviceLayout);
        DeviceLayoutContext deviceContext = new TestDeviceLayoutContext();

        deviceContext.setDeviceLayout(runtimeDeviceLayout);
        context.pushDeviceLayoutContext(deviceContext);
        ContextInternals.setMarinerPageContext(requestContext, context);
        protocol.setMarinerPageContext(context);

        PaneInstance paneInstance = new TestPaneInstance();
View Full Code Here

        // Activate the device layout.
        RuntimeDeviceLayout runtimeDeviceLayout =
                RuntimeDeviceLayoutTestHelper.activate(canvasLayout);

        deviceLayoutContext = new TestDeviceLayoutContext();
        deviceLayoutContext.setDeviceLayout(runtimeDeviceLayout);
        pageContext.pushDeviceLayoutContext(deviceLayoutContext);

        pageContext.setDeviceLayout(runtimeDeviceLayout);
View Full Code Here

        AbstractPaneInstance paneInstance;
        paneInstance = createTestableAbstractPaneContext(
                index);
        paneInstance.setFormat(this.format);
        paneInstance.setDeviceLayoutContext(new TestDeviceLayoutContext());
        paneInstance.initialise();
        return paneInstance;
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.TestDeviceLayoutContext

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.