Package com.volantis.mcs.protocols.builder

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


        super(name);
    }

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


public class XHTMLFullTransVisitorTestCase extends
        XHTMLBasicTransVisitorTestCase {

    // javadoc inherited from superclass
    protected DOMProtocol createDOMProtocol(InternalDevice internalDevice) {
        ProtocolBuilder builder = new ProtocolBuilder();
        return (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestXHTMLFullFactory(),
                internalDevice);
    }
View Full Code Here

     *
     * @return HTML 4 Protocol class
     */
    protected DOMProtocol createProtocol() {

        final ProtocolBuilder builder = new ProtocolBuilder();

        final DefaultDevice defaultDevice =
            new DefaultDevice("Test Device", new HashMap(), null);
        defaultDevice.setPolicyValue(
            DevicePolicyConstants.SUPPORTS_JAVASCRIPT, "true");
        InternalDevice device =
            INTERNAL_DEVICE_FACTORY.createInternalDevice(defaultDevice);

        return (DOMProtocol)builder.build(
            new ProtocolRegistry.HTMLVersion4_0Factory(), device);
    }
View Full Code Here

    protected void setUp() throws Exception {
        super.setUp();

        internalDevice = InternalDeviceTestHelper.createTestDevice();

        protocol = (XHTMLBasic) new ProtocolBuilder().build(
                new TestProtocolRegistry.TestXHTMLBasicFactory(),
                internalDevice);
    }
View Full Code Here

    /**
     * Simple method test
     */
    public void testGetVisitor() throws Exception {
        TransFactory factory = new XHTMLBasicTransFactory(configuration);
        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol protocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                internalDevice);

        TransVisitor visitor = factory.getVisitor(protocol);

View Full Code Here


    // javadoc inherited
    protected VolantisProtocol getProtocol() {
        // todo: better: make this work with the test version
        ProtocolBuilder protocolBuilder = new ProtocolBuilder();
        VolantisProtocol protocol = protocolBuilder.build(
                new ProtocolRegistry.VoiceXMLVersion1_0Factory(),
                internalDevice);
       
        return protocol;
    }
View Full Code Here

    }

    public void testHrefMakeChild() throws IOException {

        ProtocolFactory factory = new ProtocolRegistry.HTMLVersion4_0Factory();
        ProtocolBuilder builder = new ProtocolBuilder();

        DOMProtocol protocol = (DOMProtocol)builder.build(factory, null);

        Document document = domFactory.createDocument();

        Element element1 = domFactory.createElement();
        element1.setName("h1");
View Full Code Here

    }

    public void testHrefMakeParent() throws IOException {

        ProtocolFactory factory = new ProtocolRegistry.HTMLVersion4_0Factory();
        ProtocolBuilder builder = new ProtocolBuilder();

        DOMProtocol protocol = (DOMProtocol)builder.build(factory, null);

        Document document = domFactory.createDocument();

        Element element1 = domFactory.createElement();
        element1.setName("span");
View Full Code Here

    }

    public void testHrefPushDown() throws IOException {

        ProtocolFactory factory = new ProtocolRegistry.HTMLVersion4_0Factory();
        ProtocolBuilder builder = new ProtocolBuilder();

        DOMProtocol protocol = (DOMProtocol)builder.build(factory, null);

        Document document = domFactory.createDocument();

        Element element1 = domFactory.createElement();
        element1.setName("tr");
View Full Code Here

    }

    public void testHrefIgnore() throws IOException {

        ProtocolFactory factory = new ProtocolRegistry.HTMLVersion4_0Factory();
        ProtocolBuilder builder = new ProtocolBuilder();

        DOMProtocol protocol = (DOMProtocol)builder.build(factory, null);

        Document document = domFactory.createDocument();

        Element element1 = domFactory.createElement();
        element1.setName("span");
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.