Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.DOMOutputBuffer.initialise()


    /**
     * Test that the doMenu method creates the correct vxml markup
     */
    public void testDoMenuWithCSSEmulationStyle() throws Exception {
        final DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();
        testable.setCurrentBuffer(null, buffer);

        TestMarinerPageContext context = new TestMarinerPageContext();

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


     * protocol field.
     * @return The new DOMOutputBuffer.
     */
    private DOMOutputBuffer getNewDOMOutputBuffer() {
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();
        testable.setCurrentBuffer(null, buffer);
        return buffer;
    }

    /**
 
View Full Code Here

                                 "string");
    }

    public void testAddPhoneNumberContentsPopulatedDom() throws Exception {
        DOMOutputBuffer contentDom = new DOMOutputBuffer();
        contentDom.initialise();
        contentDom.openElement("content");
        contentDom.addElement("example");
        contentDom.appendEncoded("with text");
        contentDom.closeElement("content");
View Full Code Here

                                 "DOM");
    }

    public void testAddPhoneNumberContentsEmptyDom() throws Exception {
        DOMOutputBuffer contentDom = new DOMOutputBuffer();
        contentDom.initialise();

        doPhoneNumberContentTest(contentDom,
                                 "<block><prompt>" +
                                 "<sayas class=\"literal\">" + phoneNumber +
                                 "</sayas></prompt></block>",
View Full Code Here

     */
    public void testAnchorNameIdentification() throws ProtocolException, RepositoryException {
        // Set up the protocol and dependent objects.
        privateSetUp();
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        // Initialise our protocol attributes with an id attribute.
        String idValue = "the identifier value";
        AnchorAttributes attributes = new AnchorAttributes();
        attributes.setId(idValue);
View Full Code Here

     * Check encoding from the quote table
     */
    public void testElementEncoding() throws ProtocolException, RepositoryException {
        privateSetUp();
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        buffer.openElement("p");
        buffer.appendEncoded("start ");
        buffer.appendEncoded("\u009f");
        buffer.appendEncoded(VolantisProtocol.NBSP);
View Full Code Here

     */
    public void testImageNameIdentification() throws ProtocolException, RepositoryException {
        // Set up the protocol and dependent objects.
        privateSetUp();
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        // Initialise our protocol attributes with an id attribute.
        String idValue = "the identifier value";
        ImageAttributes attributes = new ImageAttributes();
        attributes.setId(idValue);
View Full Code Here

     */
    public void testImageNoSrcNoAlt() throws ProtocolException {
        // Set up the protocol and dependent objects.
        privateSetUp();
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();
       
        // Initialise our protocol attributes with an id attribute.
        ImageAttributes attributes = new ImageAttributes();
        attributes.setLocalSrc(true);
        attributes.setSrc(null);
View Full Code Here

        TestMarinerPageContext context = new TestMarinerPageContext();
        context.pushRequestContext(requestContext);
        protocol.setMarinerPageContext(context);

        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();
        context.setCurrentOutputBuffer(buffer);

        SpatialFormatIteratorAttributes attributes =
                new SpatialFormatIteratorAttributes();
        attributes.setStyles(StylesBuilder.getDeprecatedStyles());
View Full Code Here

    public void testOpenDissectingPane() {
        privateSetUp();

        // Set the protocol to allow tranformations
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        DissectingPaneAttributes atts = setupDissectingPaneTests();

        protocol.setDissecting(true);
        protocol.openDissectingPane(buffer, atts);
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.