- java.lang.Object
-
- com.ibm.j9ddr.tools.xml.XMLDOMComparator
-
public class XMLDOMComparator extends Object
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
Fields Modifier and Type Field Description protected static String
OPT_CONFIG_FILE
protected static String
OPT_J9DDR_FILE
protected static String
OPT_JEXTRACT_FILE
protected HashMap<String,File>
opts
-
Constructor Summary
Constructors Constructor Description XMLDOMComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
compareXML()
Compare the J9DDR and JExtract XML to check that they are equal according to the XPath selectors in the configuration file.Iterator<String>
getMessages()
static void
main(String[] args)
void
parseArgs(String[] args)
-
-
-
Field Detail
-
OPT_J9DDR_FILE
protected static final String OPT_J9DDR_FILE
- See Also:
- Constant Field Values
-
OPT_JEXTRACT_FILE
protected static final String OPT_JEXTRACT_FILE
- See Also:
- Constant Field Values
-
OPT_CONFIG_FILE
protected static final String OPT_CONFIG_FILE
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(String[] args)
- 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
public void parseArgs(String[] args)
-
-