Package com.volantis.mcs.protocols

Examples of com.volantis.mcs.protocols.TestDOMOutputBuffer.closeElement()


        NodeAnnotation na = new NodeAnnotation() {};
        da.setObject(na);
        buffer.openElement(da);
        Element a = buffer.openElement("a");
        a.setAttribute("href", "[url]");
        buffer.closeElement(a);
        buffer.closeElement(da);
        buffer.closeElement(p);
       
        StringWriter out = new StringWriter();
        context.setContentHandler(new TestDebugProducer(out));
View Full Code Here


        da.setObject(na);
        buffer.openElement(da);
        Element a = buffer.openElement("a");
        a.setAttribute("href", "[url]");
        buffer.closeElement(a);
        buffer.closeElement(da);
        buffer.closeElement(p);
       
        StringWriter out = new StringWriter();
        context.setContentHandler(new TestDebugProducer(out));
        outputter.addSpecialElementProcessor("da", processor);
View Full Code Here

        buffer.openElement(da);
        Element a = buffer.openElement("a");
        a.setAttribute("href", "[url]");
        buffer.closeElement(a);
        buffer.closeElement(da);
        buffer.closeElement(p);
       
        StringWriter out = new StringWriter();
        context.setContentHandler(new TestDebugProducer(out));
        outputter.addSpecialElementProcessor("da", processor);
        p.accept(outputter);
View Full Code Here

        // Render using the test buffer
        renderer.render(testBuffer);

        // End span element
        testBuffer.closeElement("span");

        // Extract the output from the rendering as a string.
        String actual = DOMUtilities.toString(testBuffer.getRoot());
        assertNotNull("The actual string should exist", actual);
View Full Code Here

        // Add some content...
        Element element = buffer.openElement("a");
        element.setAttribute("href", testHref);
        element.setAttribute("accesskey", renderer.getShortcut().getText(TextEncoding.PLAIN));
        buffer.appendEncoded(testContent);
        buffer.closeElement(element);

        // End the call
        renderer.end(buffer);

        // Create expected
View Full Code Here

        // Render using the test buffer
        renderer.render(testBuffer);

        // End element
        testBuffer.closeElement(element);

        // Extract the output from the rendering as a string.
        String actual = DOMUtilities.toString(testBuffer.getRoot());
        assertNotNull("The actual string should exist", actual);
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.