Package com.volantis.mcs.wbsax

Examples of com.volantis.mcs.wbsax.PublicIdCode


    /**
     * WML v1.2 should pick up WML v1.1's name, dtd and code.
     */
    public void testProtocolHasCorrectDTD() throws Exception {

        final PublicIdCode publicIdCode = ((WMLRootConfiguration)protocol.
            getProtocolConfiguration()).publicIdCode;

        assertEquals("DTD should match",
                     "http://www.wapforum.org/DTD/wml_1.1.xml",
                     publicIdCode.getDtd());

        assertEquals("Name should match",
                     "-//WAPFORUM//DTD WML 1.1//EN",
                     publicIdCode.getName());

        assertEquals("Code should match",
                     0x04,
                     publicIdCode.getInteger());
    }
View Full Code Here


        return protocol;
    }

    // javadoc inherited.
    public void testProtocolHasCorrectDTD() throws Exception {
        final PublicIdCode publicIdCode = ((WMLVersion1_3Configuration)protocol.
            getProtocolConfiguration()).getPublicIdCode();

        assertEquals("DTD should match",
                     "http://www.wapforum.org/DTD/wml13.dtd",
                     publicIdCode.getDtd());

        assertEquals("Name should match",
                     "-//WAPFORUM//DTD WML 1.3//EN",
                     publicIdCode.getName());

        assertEquals("Code should match",
                     0x0A,
                     publicIdCode.getInteger());
    }
View Full Code Here

    /**
     * WML v1.2 should pick up WML v1.1's name, dtd and code.
     */
    public void testProtocolHasCorrectDTD() throws Exception {

        final PublicIdCode publicIdCode = ((WMLRootConfiguration)protocol.
            getProtocolConfiguration()).publicIdCode;

        assertEquals("DTD should match",
                     "http://www.wapforum.org/DTD/wml_1.1.xml",
                     publicIdCode.getDtd());

        assertEquals("Name should match",
                     "-//WAPFORUM//DTD WML 1.1//EN",
                     publicIdCode.getName());

        assertEquals("Code should match",
                     0x04,
                     publicIdCode.getInteger());
    }
View Full Code Here

        TestWBSAXContentHandler contentHandler = new TestWBSAXContentHandler();
        URLOptimiser optimiser = new URLOptimiser(contentHandler);
           
        // Start the document
        VersionCode versionCode = VersionCode.V1_1;
        PublicIdCode publicIdCode = PublicIdFactory.WML_1_1;
        Codec codec = new Codec(new CharsetCode(4, "iso-8859-1"));
        StringFactory strings = new StringFactory(codec);
        StringTable stringTable = new StringTable();
        optimiser.setPageContext(getPageContext());
        optimiser.startDocument(versionCode, publicIdCode, codec, stringTable,
View Full Code Here

TOP

Related Classes of com.volantis.mcs.wbsax.PublicIdCode

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.