Package org.custommonkey.xmlunit

Examples of org.custommonkey.xmlunit.Transform


    public static Document transform(String testFileName, String styleSheetName) throws TransformerException {
        final InputStream styleSheetResource =
                XmlTestUtilities.class.getResourceAsStream(styleSheetName);
        final InputStream inputResource = XmlTestUtilities.class.getResourceAsStream(testFileName);
        Transform myTransform = new Transform(new InputSource(inputResource),
                new InputSource(styleSheetResource));

        assertNotNull("Can't read the XSL file to use for transform", styleSheetResource);
        assertNotNull("Can't read the XML file to test", inputResource);
        return myTransform.getResultDocument();
    }
View Full Code Here


    private static Document transformControl(final XPathMemo xpath, final InputStream is)
            throws IOException, SAXException, TransformerException, XPathExpressionException {

        final Document d = XMLUnit.buildControlDocument(new InputSource(is));
        mergeAnnotationGroupsIntoLeaves(xpath, d);
        return new Transform(d, nornalizeXbelXslt).getResultDocument();
    }
View Full Code Here

    private static Document transformTest(final InputStream is)
            throws IOException, SAXException, TransformerException {

        final Document d = XMLUnit.buildTestDocument(new InputSource(is));
        return new Transform(d, nornalizeXbelXslt).getResultDocument();
    }
View Full Code Here

TOP

Related Classes of org.custommonkey.xmlunit.Transform

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.