Package com.volantis.mcs.protocols.builder

Examples of com.volantis.mcs.protocols.builder.ProtocolBuilder.build()


    private TransformingVisitor createVisitor() {

        InternalDevice internalDevice = InternalDeviceTestHelper.createTestDevice();

        ProtocolBuilder builder = new ProtocolBuilder();
        TestDOMProtocol protocol = (TestDOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                internalDevice);
        TestMarinerPageContext context = new TestMarinerPageContext();
        context.setDevicePolicyValue(DevicePolicyConstants.FIX_FOR_OPEN_INLINE_STYLING_ELEMENTS,
                                     DevicePolicyConstants.WHITESPACE_INSIDE);
View Full Code Here


        // Set up the protocol (needed for OutputBuffer management)
        // The test implementation avoids the need for an initialized volantis
        // bean, which is jolly handy in this case
        ProtocolBuilder builder = new ProtocolBuilder();
        VolantisProtocol protocol = builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                InternalDeviceTestHelper.createTestDevice());
        pageContext.setProtocol(protocol);

        // Set the Layout (needed for FormatReference and panes)
View Full Code Here

            INTERNAL_DEVICE_FACTORY.createInternalDevice(dev);
        appContext.setDevice(internalDevice);
        pageContext.setDevice(internalDevice);

        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol domProtocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                InternalDeviceTestHelper.createTestDevice());
        final DeviceLayoutContext layoutContext = new DeviceLayoutContext();

        pageContext.pushDeviceLayoutContext(layoutContext);
View Full Code Here

    }

    public void testGetTable() throws Exception {
        Element table = domFactory.createElement();
        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                internalDevice);

        table.setName("table");
View Full Code Here

                transTable.getClass().getName());
    }

    public void testGetVisitor() throws Exception {
        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                internalDevice);

        TransVisitor visitor = getFactory().getVisitor(protocol);
View Full Code Here

                visitor.getClass().getName());
    }

    public void testGetCell() throws Exception {
        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                internalDevice);

        TransCell cell = getFactory().getCell(null, null, 0, 0, protocol);
View Full Code Here

     * for the com.volantis.mcs.protocols.html.xhtmlfull.XHTMLFullTransFactory
     * class.
     */
    public void testGetMapper() throws Exception {
        ProtocolBuilder builder = new ProtocolBuilder();
        TestDOMProtocol protocol = (TestDOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                internalDevice);

        final TransFactory factory = getFactory();
        // default is true for nested table support.
View Full Code Here

    public void testOptimization() throws Exception {

        InternalDevice internalDevice = InternalDeviceTestHelper.createTestDevice();

        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestXHTMLFullFactory(),
                internalDevice);

        String original =
            "<html>" +
View Full Code Here

    private XHTMLBasicTestable testable;

    protected VolantisProtocol createTestableProtocol(
            InternalDevice internalDevice) {
        ProtocolBuilder builder = new ProtocolBuilder();
        VolantisProtocol protocol = builder.build(
                new TestProtocolRegistry.TestHTML_iModeFactory(),
                internalDevice);
        return protocol;
    }
View Full Code Here

    }

    public void testGetTable() throws Exception {
        Element table = domFactory.createElement();
        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                internalDevice);

        table.setName("table");
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.