public class Comparison extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Comparison.Detail
The details of a target (usually some representation of an XML
Node) that took part in the comparison.
|
Constructor and Description |
---|
Comparison(ComparisonType t,
Node controlTarget,
String controlXPath,
Object controlValue,
String controlParentXPath,
Node testTarget,
String testXPath,
Object testValue,
String testParentXPath) |
Modifier and Type | Method and Description |
---|---|
Comparison.Detail |
getControlDetails()
Details of the control target.
|
Comparison.Detail |
getTestDetails()
Details of the test target.
|
ComparisonType |
getType()
The kind of comparison performed.
|
String |
toString()
Returns a string representation of this comparison using
DefaultComparisonFormatter |
String |
toString(ComparisonFormatter formatter)
Returns a string representation of this comparison using the
given
ComparisonFormatter |
public ComparisonType getType()
public Comparison.Detail getControlDetails()
public Comparison.Detail getTestDetails()
public String toString(ComparisonFormatter formatter)
ComparisonFormatter
formatter
- the ComparisonFormatter to usepublic String toString()
DefaultComparisonFormatter
Copyright © 2001–2017 XMLUnit. All rights reserved.