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