| Package | Description |
|---|---|
| org.xmlunit.builder |
Provides fluent builders for core parts of XMLUnit.
|
| org.xmlunit.diff |
Contains XMLUnit
DifferenceEngine that is
at the heart of all comparisons as well as supporting interfaces
and implementations. |
| Modifier and Type | Method and Description |
|---|---|
DiffBuilder |
DiffBuilder.withComparisonFormatter(ComparisonFormatter formatter)
Sets a non-default formatter for the differences found.
|
D |
DifferenceEngineConfigurer.withComparisonFormatter(ComparisonFormatter formatter)
Sets a non-default formatter for the differences found.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultComparisonFormatter
Formatter methods for a
Comparison Object. |
| Modifier and Type | Method and Description |
|---|---|
String |
Diff.fullDescription(ComparisonFormatter formatter)
Returns a string representation of this diff
using the given
ComparisonFormatter
Each comparison result separated by the end of the line. |
void |
Difference.setComparisonFormatter(ComparisonFormatter formatter)
Sets the default formatter to use with
Difference.toString(org.xmlunit.diff.ComparisonFormatter). |
String |
Difference.toString(ComparisonFormatter formatter)
Returns a string representation of this difference using the
given
ComparisonFormatter |
String |
Diff.toString(ComparisonFormatter formatter)
Returns a string representation of first found difference in this diff
using the given
ComparisonFormatter |
String |
Comparison.toString(ComparisonFormatter formatter)
Returns a string representation of this comparison using the
given
ComparisonFormatter |
| Constructor and Description |
|---|
Diff(Source controlSource,
Source testSource,
ComparisonFormatter formatter,
Iterable<Difference> differences)
Encapsulates the compared sources and the differences found.
|
Copyright © 2001–2025 XMLUnit. All rights reserved.