Uses of Class
org.xmlunit.builder.DiffBuilder
Packages that use DiffBuilder
Package
Description
AssertJ 3.x assertions on top of XMLUnit's core.
Provides fluent builders for core parts of XMLUnit.
Hamcrest matchers on top of XMLUnit's core.
-
Uses of DiffBuilder in org.xmlunit.assertj3
Fields in org.xmlunit.assertj3 declared as DiffBuilderConstructors in org.xmlunit.assertj3 with parameters of type DiffBuilder -
Uses of DiffBuilder in org.xmlunit.builder
Methods in org.xmlunit.builder that return DiffBuilderModifier 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 "<!-- Comment -->" from test- and control-XML before comparing.DiffBuilder.ignoreCommentsUsingXSLTVersion
(String xsltVersion) Will remove all comment-Tags "<!-- Comment -->" from test- and control-XML before comparing.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)
. -
Uses of DiffBuilder in org.xmlunit.matchers
Fields in org.xmlunit.matchers declared as DiffBuilder