Package | Description |
---|---|
org.xmlunit.builder |
Provides fluent builders for core parts of XMLUnit.
|
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(Object control)
Create a DiffBuilder from all kind of types supported by
Input.from(Object) . |
DiffBuilder |
DiffBuilder.ignoreComments()
Will remove all comment-Tags "<!
|
DiffBuilder |
DiffBuilder.ignoreCommentsUsingXSLTVersion(String xsltVersion)
Will remove all comment-Tags "<!
|
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<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 a listener that is notified of each comparison.
|
DiffBuilder |
DiffBuilder.withDifferenceEvaluator(DifferenceEvaluator differenceEvaluator)
Provide your own custom
DifferenceEvaluator implementation. |
DiffBuilder |
DiffBuilder.withDifferenceListeners(ComparisonListener... comparisonListeners)
Registers a listener that is notified of each comparison with
outcome other than
ComparisonResult.EQUAL . |
DiffBuilder |
DiffBuilder.withDocumentBuilderFactory(DocumentBuilderFactory f)
|
DiffBuilder |
DiffBuilder.withNamespaceContext(Map<String,String> prefix2Uri)
Establish a namespace context that will be used in
Comparison.Detail#getXPath . |
DiffBuilder |
DiffBuilder.withNodeFilter(Predicate<Node> nodeFilter)
Registers a filter for nodes.
|
DiffBuilder |
DiffBuilder.withNodeMatcher(NodeMatcher nodeMatcher)
Sets the strategy for selecting nodes to compare.
|
DiffBuilder |
DiffBuilder.withTest(Object test)
Set the Test-Source from all kind of types supported by
Input.from(Object) . |
Copyright © 2001–2017 XMLUnit. All rights reserved.