Package | Description |
---|---|
org.xmlunit.assertj |
AssertJ assertions on top of XMLUnit's core.
|
org.xmlunit.builder |
Provides fluent builders for core parts of XMLUnit.
|
org.xmlunit.matchers |
Hamcrest matchers on top of XMLUnit's core.
|
Modifier and Type | Field and Description |
---|---|
private DiffBuilder |
CompareAssert.diffBuilder |
Constructor and Description |
---|
CompareAssert(java.lang.Object actual,
DiffBuilder diffBuilder) |
Modifier and Type | Method and Description |
---|---|
DiffBuilder |
DiffBuilder.checkForIdentical()
check test source with the control source for identically.
|
DiffBuilder |
DiffBuilder.checkForSimilar()
check test source with the control source for similarity.
|
static DiffBuilder |
DiffBuilder.compare(java.lang.Object control)
Create a DiffBuilder from all kind of types supported by
Input.from(Object) . |
DiffBuilder |
DiffBuilder.ignoreComments()
Will remove all comment-Tags "<!-- Comment -->" from test- and control-XML before comparing.
|
DiffBuilder |
DiffBuilder.ignoreCommentsUsingXSLTVersion(java.lang.String xsltVersion)
Will remove all comment-Tags "<!-- Comment -->" from test- and control-XML before comparing.
|
DiffBuilder |
DiffBuilder.ignoreElementContentWhitespace()
Ignore element content whitespace by removing all text nodes solely consisting of whitespace.
|
DiffBuilder |
DiffBuilder.ignoreWhitespace()
Ignore whitespace by removing all empty text nodes and trimming the non-empty ones.
|
DiffBuilder |
DiffBuilder.normalizeWhitespace()
Normalize Text-Elements by removing all empty text nodes and normalizing the non-empty ones.
|
DiffBuilder |
DiffBuilder.withAttributeFilter(Predicate<org.w3c.dom.Attr> attributeFilter)
Registers a filter for attributes.
|
DiffBuilder |
DiffBuilder.withComparisonController(ComparisonController comparisonController)
Replace the
ComparisonControllers.Default with your own ComparisonController. |
DiffBuilder |
DiffBuilder.withComparisonFormatter(ComparisonFormatter formatter)
Sets a non-default formatter for the differences found.
|
DiffBuilder |
DiffBuilder.withComparisonListeners(ComparisonListener... comparisonListeners)
Registers listeners that are notified of each comparison.
|
DiffBuilder |
DiffBuilder.withDifferenceEvaluator(DifferenceEvaluator differenceEvaluator)
Provide your own custom
DifferenceEvaluator implementation. |
DiffBuilder |
DiffBuilder.withDifferenceListeners(ComparisonListener... comparisonListeners)
Registers listeners that are notified of each comparison with
outcome other than
ComparisonResult.EQUAL . |
DiffBuilder |
DiffBuilder.withDocumentBuilderFactory(javax.xml.parsers.DocumentBuilderFactory f)
Sets the
DocumentBuilderFactory to use when creating a
Document from the Source s to compare. |
DiffBuilder |
DiffBuilder.withNamespaceContext(java.util.Map<java.lang.String,java.lang.String> prefix2Uri)
Establish a namespace context that will be used in
Comparison.Detail#getXPath . |
DiffBuilder |
DiffBuilder.withNodeFilter(Predicate<org.w3c.dom.Node> nodeFilter)
Registers a filter for nodes.
|
DiffBuilder |
DiffBuilder.withNodeMatcher(NodeMatcher nodeMatcher)
Sets the strategy for selecting nodes to compare.
|
DiffBuilder |
DiffBuilder.withTest(java.lang.Object test)
Set the Test-Source from all kind of types supported by
Input.from(Object) . |
Modifier and Type | Field and Description |
---|---|
private DiffBuilder |
CompareMatcher.diffBuilder |