Uses of Class
org.xmlunit.builder.DiffBuilder
-
Uses of DiffBuilder in org.xmlunit.builder
Modifier and TypeMethodDescriptionDiffBuilder.checkForIdentical()
check test source with the control source for identically.DiffBuilder.checkForSimilar()
check test source with the control source for similarity.static DiffBuilder
Create a DiffBuilder from all kind of types supported byInput.from(Object)
.DiffBuilder.ignoreComments()
Will remove all comment-Tags "<!DiffBuilder.ignoreCommentsUsingXSLTVersion
(String xsltVersion) Will remove all comment-Tags "<!DiffBuilder.ignoreElementContentWhitespace()
Ignore element content whitespace by removing all text nodes solely consisting of whitespace.DiffBuilder.ignoreWhitespace()
Ignore whitespace by removing all empty text nodes and trimming the non-empty ones.DiffBuilder.normalizeWhitespace()
Normalize Text-Elements by removing all empty text nodes and normalizing the non-empty ones.DiffBuilder.withAttributeFilter
(Predicate<Attr> attributeFilter) Registers a filter for attributes.DiffBuilder.withComparisonController
(ComparisonController comparisonController) Replace theComparisonControllers.Default
with your own ComparisonController.DiffBuilder.withComparisonFormatter
(ComparisonFormatter formatter) Sets a non-default formatter for the differences found.DiffBuilder.withComparisonListeners
(ComparisonListener... comparisonListeners) Registers listeners that are notified of each comparison.DiffBuilder.withDifferenceEvaluator
(DifferenceEvaluator differenceEvaluator) Provide your own customDifferenceEvaluator
implementation.DiffBuilder.withDifferenceListeners
(ComparisonListener... comparisonListeners) Registers listeners that are notified of each comparison with outcome other thanComparisonResult.EQUAL
.DiffBuilder.withDocumentBuilderFactory
(DocumentBuilderFactory f) DiffBuilder.withNamespaceContext
(Map<String, String> prefix2Uri) Establish a namespace context that will be used inComparison.Detail#getXPath
.DiffBuilder.withNodeFilter
(Predicate<Node> nodeFilter) Registers a filter for nodes.DiffBuilder.withNodeMatcher
(NodeMatcher nodeMatcher) Sets the strategy for selecting nodes to compare.Set the Test-Source from all kind of types supported byInput.from(Object)
.