public class Difference extends Object
Comparison
and its result
.
As the name implies, the implicit assumption is that the result
is not ComparisonResult.EQUAL
Constructor and Description |
---|
Difference(Comparison comparison,
ComparisonResult result)
Combines comparison and result.
|
Modifier and Type | Method and Description |
---|---|
Comparison |
getComparison()
The details of the comparison.
|
ComparisonResult |
getResult()
The result of the difference.
|
void |
setComparisonFormatter(ComparisonFormatter formatter)
Sets the default formatter to use with
toString(org.xmlunit.diff.ComparisonFormatter) . |
String |
toString()
Returns a string representation of this difference using
DefaultComparisonFormatter |
String |
toString(ComparisonFormatter formatter)
Returns a string representation of this difference using the
given
ComparisonFormatter |
public Difference(Comparison comparison, ComparisonResult result)
public ComparisonResult getResult()
public Comparison getComparison()
public void setComparisonFormatter(ComparisonFormatter formatter)
toString(org.xmlunit.diff.ComparisonFormatter)
.public String toString(ComparisonFormatter formatter)
ComparisonFormatter
formatter
- the ComparisonFormatter to usepublic String toString()
DefaultComparisonFormatter
Copyright © 2001–2017 XMLUnit. All rights reserved.