Package org.castor.xmlctf.xmldiff

Examples of org.castor.xmlctf.xmldiff.XMLDiff.compare()


     *             document
     */
    public static int compare(final String document1, final String document2)
                                                         throws java.io.IOException {
        XMLDiff diff = new XMLDiff(document1, document2);
        return diff.compare();
    }

    /**
     * Returns the class associated with the given name.
     *
 
View Full Code Here


        URL expectedUrl = this.getClass().getResource(expected);
        File expectedSchemaFile = new File(expectedUrl.toURI());

        // 3. compare using org.castor.xmlctf.xmldiff.XMLDiff
        XMLDiff diff = new XMLDiff(targetedOutput.getAbsolutePath(), expectedSchemaFile.getAbsolutePath());
        int result = diff.compare();
        TestResult testResult = result == 0 ? TestResult.IDENTICAL : TestResult.DIFFERENCE;

        // 4. delete temporary file
        targetedOutput.delete();
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.