Uses of Class
org.xmlunit.assertj3.CompareAssert
-
Uses of CompareAssert in org.xmlunit.assertj3
Modifier and TypeMethodDescriptionCreateCompareAssert
for given control XML source and actual XML source.CompareAssert.areIdentical()
Check if actual and control XMLs are identical.CompareAssert.areNotIdentical()
Check if actual and control XMLs are not identical.CompareAssert.areNotSimilar()
Check if actual and control XMLs are not similar.CompareAssert.areSimilar()
Check if actual and control XMLs are similar.CompareAssert.ignoreChildNodesOrder()
Equivalent forCompareAssert.ignoreComments()
Will remove all comment-Tags "<!CompareAssert.ignoreCommentsUsingXSLTVersion
(String xsltVersion) Will remove all comment-Tags "<!CompareAssert.ignoreElementContentWhitespace()
Ignore element content whitespace by removing all text nodes solely consisting of whitespace.CompareAssert.ignoreWhitespace()
Ignore whitespace by removing all empty text nodes and trimming the non-empty ones.CompareAssert.normalizeWhitespace()
Normalize Text-Elements by removing all empty text nodes and normalizing the non-empty ones.CompareAssert.withAttributeFilter
(Predicate<Attr> attributeFilter) Registers a filter for attributes.CompareAssert.withComparisonController
(ComparisonController comparisonController) Replace theComparisonControllers.Default
with your own ComparisonController.CompareAssert.withComparisonFormatter
(ComparisonFormatter formatter) Sets a non-default formatter for the differences found.CompareAssert.withComparisonListeners
(ComparisonListener... comparisonListeners) Registers listeners that are notified of each comparison.CompareAssert.withDifferenceEvaluator
(DifferenceEvaluator differenceEvaluator) Provide your own customDifferenceEvaluator
implementation.CompareAssert.withDifferenceListeners
(ComparisonListener... comparisonListeners) Registers listeners that are notified of each comparison with outcome other thanComparisonResult.EQUAL
.CompareAssert.withDocumentBuilderFactory
(DocumentBuilderFactory f) CompareAssert.withNamespaceContext
(Map<String, String> prefix2Uri) Establish a namespace context that will be used inComparison.Detail#getXPath
.CompareAssert.withNodeFilter
(Predicate<Node> nodeFilter) Registers a filter for nodes.CompareAssert.withNodeMatcher
(NodeMatcher nodeMatcher) Sets the strategy for selecting nodes to compare.