Package org.xmlunit.diff
Class Comparison
java.lang.Object
org.xmlunit.diff.Comparison
Details of a single comparison XMLUnit has performed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The details of a target (usually some representation of an XML Node) that took part in the comparison. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Comparison.Detail
private final Comparison.Detail
private final ComparisonType
-
Constructor Summary
ConstructorsConstructorDescriptionComparison
(ComparisonType t, Node controlTarget, String controlXPath, Object controlValue, String controlParentXPath, Node testTarget, String testXPath, Object testValue, String testParentXPath) -
Method Summary
Modifier and TypeMethodDescriptionDetails of the control target.Details of the test target.getType()
The kind of comparison performed.toString()
Returns a string representation of this comparison usingDefaultComparisonFormatter
toString
(ComparisonFormatter formatter) Returns a string representation of this comparison using the givenComparisonFormatter
-
Field Details
-
control
-
test
-
type
-
-
Constructor Details
-
Comparison
-
-
Method Details
-
getType
The kind of comparison performed. -
getControlDetails
Details of the control target. -
getTestDetails
Details of the test target. -
toString
Returns a string representation of this comparison using the givenComparisonFormatter
- Parameters:
formatter
- the ComparisonFormatter to use- Returns:
- a string representation of this comparison
-
toString
Returns a string representation of this comparison usingDefaultComparisonFormatter
-