Package com.volantis.mcs.dom

Examples of com.volantis.mcs.dom.StyledDOMTester.render()


        attrs.setStyles(factory.createStyles(factory.createPropertyValues(
                StylePropertyDetails.getDefinitions())));
        protocol.doHorizontalRule(buffer, attrs);
        document.addNode(buffer.getRoot());
        StyledDOMTester tester = new StyledDOMTester();
        String output = tester.render(document);
        String expected =
                "<BLOCK>" +
                    "--------" +
                "</BLOCK>";
        assertEquals("Wrong output in doHorizontalRule method",
View Full Code Here


        if (root.getName() == null) {
            root.setName("testRoot");
        }
        document.addNode(root);
        StyledDOMTester tester = new StyledDOMTester(true);
        final String result = tester.render(document);

        assertEquals(tester.normalize(getExpectedXFSelectString()), result);
    }

    /**
 
View Full Code Here

                    "<option onpick=\"" + href + "\" title=\"x\">" +
                      text +
                    "</option>" +
                  "</select>" +
                "</BLOCK>";
        String actual = tester.render(buffer.getRoot());
        assertEquals("Openwave Fragment Link not rendering correctly",
                tester.normalize(expected), actual);
    }
   
}
View Full Code Here

     * @return the string representation of the outputBuffer member
     * @throws Exception if an error occurs
     */
    protected String getOutputBufferAsString() throws Exception {
        StyledDOMTester tester = new StyledDOMTester();
        return tester.render(outputBuffer.getRoot());
    }

    /**
     * tests both the {@link AbstractMenuRenderer#openMenu} and
     * {@link AbstractMenuRenderer#closeMenu} methods on the
View Full Code Here

        } else {
            normalizedExpected = tester.normalize(
                    "<root>" + expected + "</root>");
        }

        final String output = tester.render(rootElement);

        assertEquals("Output should match expected value (" + output + ", " +
                normalizedExpected + ")", normalizedExpected, output);
    }
}
View Full Code Here

        // run the test
        XFormEmulationTransformer transformer = new XFormEmulationTransformer();
        Document outputDoc = transformer.transform(protocol, inputDoc);

        // convert Document to markup
        String canonicalExpectedXML = tester.render(expectedDoc);
        String actualXML = tester.render(outputDoc);

        // compare the actual markup with that expected
        assertXMLEquals("Actual XML does not match expected XML." +
                "\nExpectedXML:\n" + canonicalExpectedXML +
View Full Code Here

        XFormEmulationTransformer transformer = new XFormEmulationTransformer();
        Document outputDoc = transformer.transform(protocol, inputDoc);

        // convert Document to markup
        String canonicalExpectedXML = tester.render(expectedDoc);
        String actualXML = tester.render(outputDoc);

        // compare the actual markup with that expected
        assertXMLEquals("Actual XML does not match expected XML." +
                "\nExpectedXML:\n" + canonicalExpectedXML +
                "\nActualXML:\n" + actualXML,
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.