Class AbstractComparator

    • Constructor Detail

      • AbstractComparator

        public AbstractComparator()
    • Method Detail

      • getDifferences

        public List<org.custommonkey.xmlunit.Difference> getDifferences​(String oldDom,
                                                                        String newDom)
        Specified by:
        getDifferences in interface Comparator
        Returns:
        The differences between the two DOMs
      • isEquivalent

        public boolean isEquivalent​(String oldDom,
                                    String newDom)
        Specified by:
        isEquivalent in interface Comparator
        Returns:
        if the originalDom and the newDom are equivalent
      • normalize

        public String normalize​(String dom)
        Override this method to apply normalization to the comparison.
        Specified by:
        normalize in interface Comparator
        Parameters:
        dom - The original DOM
        Returns:
        the normalized DOM.