Uses of Class
org.xmlunit.diff.ComparisonType
-
Packages that use ComparisonType Package Description org.xmlunit.diff Contains XMLUnitDifferenceEngine
that is at the heart of all comparisons as well as supporting interfaces and implementations. -
-
Uses of ComparisonType in org.xmlunit.diff
Fields in org.xmlunit.diff declared as ComparisonType Modifier and Type Field Description private ComparisonType
Comparison. type
Methods in org.xmlunit.diff that return ComparisonType Modifier and Type Method Description ComparisonType
Comparison. getType()
The kind of comparison performed.static ComparisonType
ComparisonType. valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ComparisonType[]
ComparisonType. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.xmlunit.diff with parameters of type ComparisonType Modifier and Type Method Description static DifferenceEvaluator
DifferenceEvaluators. downgradeDifferencesToEqual(ComparisonType... types)
Creates a DifferenceEvaluator that returns a EQUAL result for differences found in one of the given ComparisonTypes.static DifferenceEvaluator
DifferenceEvaluators. downgradeDifferencesToSimilar(ComparisonType... types)
Creates a DifferenceEvaluator that returns a SIMILAR result for differences (Comparisons that are not EQUAL) found in one of the given ComparisonTypes.java.lang.String
ComparisonFormatter. getDetails(Comparison.Detail details, ComparisonType type, boolean formatXml)
Return the xml node fromComparison.Detail.getTarget()
as formatted String.java.lang.String
DefaultComparisonFormatter. getDetails(Comparison.Detail difference, ComparisonType type, boolean formatXml)
Return the xml node fromComparison.Detail.getTarget()
as formatted String.protected java.lang.String
DefaultComparisonFormatter. getFullFormattedXml(org.w3c.dom.Node node, ComparisonType type, boolean formatXml)
Formats the node using a format suitable for the node type and comparison.protected java.lang.String
DefaultComparisonFormatter. getShortString(org.w3c.dom.Node node, java.lang.String xpath, ComparisonType type)
Return a String representation forDefaultComparisonFormatter.getShortString(org.w3c.dom.Node, java.lang.String, org.xmlunit.diff.ComparisonType)
that describes the "thing" that has been compared so users know how to locate it.protected java.lang.Object
DefaultComparisonFormatter. getValue(java.lang.Object value, ComparisonType type)
May alter the display of a comparison value forDefaultComparisonFormatter.getShortString(org.w3c.dom.Node, java.lang.String, org.xmlunit.diff.ComparisonType)
based on the comparison type.private static DifferenceEvaluator
DifferenceEvaluators. recordDifferencesAs(ComparisonResult outcome, ComparisonType... types)
static DifferenceEvaluator
DifferenceEvaluators. upgradeDifferencesToDifferent(ComparisonType... types)
Creates a DifferenceEvaluator that returns a DIFFERENT result for differences (Comparisons that are not EQUAL) found in one of the given ComparisonTypes.Constructors in org.xmlunit.diff with parameters of type ComparisonType Constructor Description Comparison(ComparisonType t, org.w3c.dom.Node controlTarget, java.lang.String controlXPath, java.lang.Object controlValue, java.lang.String controlParentXPath, org.w3c.dom.Node testTarget, java.lang.String testXPath, java.lang.Object testValue, java.lang.String testParentXPath)
-