Module openj9.dtfj

Class 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.
    • Constructor Detail

      • XMLDOMComparator

        public XMLDOMComparator()
    • 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)