Package com.volantis.mcs.protocols.builder

Examples of com.volantis.mcs.protocols.builder.ProtocolBuilder


        internalDevice = InternalDeviceTestHelper.createTestDevice();
    }

    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


                     getTableClass().getName(),
                     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

        super(name);
    }

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

     *
     * @throws Exception
     */
    public void testOptimizationNestedEnabled() throws Exception {

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

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

        super(name);
    }

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

public class HTML3_2TransVisitorTestCase
        extends XHTMLTransitionalTransVisitorTestCase {

    // javadoc inherited from superclass
    protected DOMProtocol createDOMProtocol(InternalDevice internalDevice) {
        ProtocolBuilder builder = new ProtocolBuilder();

        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestHTMLVersion3_2Factory(),
                internalDevice);
        return protocol;
    }
View Full Code Here

    }

    // javadoc inherited from superclass
    protected DOMProtocol createDOMProtocol(InternalDevice internalDevice) {

        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestWapTV5_WMLVersion1_3Factory(),
                internalDevice);
        return protocol;
    }
View Full Code Here

    public void testNothingWAPTVIsFracked() {
       
    }

    public void notestOptimizationWithMultiClasses() throws Exception {
        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(), null);
        String original =
            "<wml>" +
              "<card>" +
                // Leave a duff column count attribute here (even though the
View Full Code Here

     * element as 'dissectable' but since the transformer is only interested
     * in table and div elements, they should all still be removed unless the
     * div element has 'important' Styles as is the case here.
     */
    public void testMultipleDissectingPanes() throws Exception {
        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestXHTMLBasicFactory(),
                internalDevice);

        // The transformer is only interested in table and div elements so the
        // dissectable pane element can be called whatever we like, the test is
View Full Code Here

     * tables correctly.
     *
     * @throws Exception
     */
    public void testInverseRemapTableRetention() throws Exception {
        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestXHTMLBasicFactory(),
                internalDevice);
        String original =
            "<html xmlns=\"http://www.w3.org/1999/xhtml\">" +
              "<head>" +
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.builder.ProtocolBuilder

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.