java.lang.Object
com.ibm.j9ddr.tools.xml.XMLDOMComparator
Utility class which reads in a configuration
properties file which defines a series of XPath
statements to execute against two source files.
The results are then compared for equivalence.
This class is used to check that the output from
J9DDR is the same as for JExtract. XPath is used to
identify the nodes to compare to allow specific node
testing without requiring a complete J9DDR implementation.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the J9DDR and JExtract XML to check that they are equal according to the XPath selectors in the configuration file.static void
void
-
Field Details
-
opts
-
OPT_J9DDR_FILE
- See Also:
-
OPT_JEXTRACT_FILE
- See Also:
-
OPT_CONFIG_FILE
- See Also:
-
-
Constructor Details
-
XMLDOMComparator
public XMLDOMComparator()
-
-
Method Details
-
getMessages
-
main
- Parameters:
args
-
-
compareXML
public boolean compareXML()Compare the J9DDR and JExtract XML to check that they are equal according to the XPath selectors in the configuration file.- Returns:
- true if they are equal, false if not.
-
parseArgs
-