Uses of Class
org.xmlunit.matchers.CompareMatcher
-
Uses of CompareMatcher in org.xmlunit.matchers
Methods in org.xmlunit.matchers that return CompareMatcherModifier and TypeMethodDescriptionCompareMatcher.ignoreComments()CompareMatcher.ignoreCommentsUsingXSLTVersion(String xsltVersion) CompareMatcher.ignoreElementContentWhitespace()CompareMatcher.ignoreWhitespace()static CompareMatcherCompareMatcher.isIdenticalTo(Object control) Create aCompareMatcherwhich compares the test-Object with the given control Object for identity.static CompareMatcherCompareMatcher.isSimilarTo(Object control) Create aCompareMatcherwhich compares the test-Object with the given control Object for similarity.CompareMatcher.normalizeWhitespace()CompareMatcher.throwComparisonFailure()Instead of Matcher returningfalseaorg.junit.ComparisonFailurewill be thrown.CompareMatcher.withAttributeFilter(org.xmlunit.util.Predicate<Attr> attributeFilter) CompareMatcher.withComparisonController(org.xmlunit.diff.ComparisonController comparisonController) Throws an exception as you theComparisonControlleris completely determined by the factory method used.CompareMatcher.withComparisonFormatter(org.xmlunit.diff.ComparisonFormatter comparisonFormatter) Use a custom Formatter for the Error Messages.CompareMatcher.withComparisonListeners(org.xmlunit.diff.ComparisonListener... comparisonListeners) CompareMatcher.withDifferenceEvaluator(org.xmlunit.diff.DifferenceEvaluator differenceEvaluator) CompareMatcher.withDifferenceListeners(org.xmlunit.diff.ComparisonListener... comparisonListeners) CompareMatcher.withDocumentBuilderFactory(DocumentBuilderFactory f) CompareMatcher.withNamespaceContext(Map<String, String> prefix2Uri) CompareMatcher.withNodeFilter(org.xmlunit.util.Predicate<Node> nodeFilter) CompareMatcher.withNodeMatcher(org.xmlunit.diff.NodeMatcher nodeMatcher)