Uses of Class
org.custommonkey.xmlunit.Difference
-
Packages that use Difference Package Description org.custommonkey.xmlunit Root of the XMLUnit 1.x compatibility layer.org.custommonkey.xmlunit.examples -
-
Uses of Difference in org.custommonkey.xmlunit
Fields in org.custommonkey.xmlunit declared as Difference Modifier and Type Field Description static Difference
DifferenceConstants. ATTR_NAME_NOT_FOUND
Comparing 2 elements and one has an attribute the other does notstatic Difference
DifferenceConstants. ATTR_SEQUENCE
Comparing 2 attribute lists with the same attributes in different sequencestatic Difference
DifferenceConstants. ATTR_VALUE
Comparing 2 attributes with the same name but different valuesstatic Difference
DifferenceConstants. ATTR_VALUE_EXPLICITLY_SPECIFIED
Comparing an implied attribute value against an explicit valuestatic Difference
DifferenceConstants. CDATA_VALUE
Comparing 2 CDATA sections with different valuesstatic Difference
DifferenceConstants. CHILD_NODE_NOT_FOUND
Comparing 2 nodes and one holds more childnodes than can be matched against child nodes of the other.static Difference
DifferenceConstants. CHILD_NODELIST_LENGTH
Comparing 2 nodes with different numbers of childrenstatic Difference
DifferenceConstants. CHILD_NODELIST_SEQUENCE
Comparing 2 nodes with children whose nodes are in different sequencestatic Difference
DifferenceConstants. COMMENT_VALUE
Comparing 2 comments with different valuesstatic Difference
DifferenceConstants. DOCTYPE_NAME
Comparing 2 document types with different namesstatic Difference
DifferenceConstants. DOCTYPE_PUBLIC_ID
Comparing 2 document types with different public identifiersstatic Difference
DifferenceConstants. DOCTYPE_SYSTEM_ID
Comparing 2 document types with different system identifiersstatic Difference
DifferenceConstants. ELEMENT_NUM_ATTRIBUTES
Comparing 2 elements with different number of attributesstatic Difference
DifferenceConstants. ELEMENT_TAG_NAME
Comparing 2 elements with different tag namesstatic Difference
DifferenceConstants. HAS_CHILD_NODES
Comparing 2 nodes but only one has any childrenstatic Difference
DifferenceConstants. HAS_DOCTYPE_DECLARATION
Comparing 2 Documents only one of which has a doctypestatic Difference
DifferenceConstants. NAMESPACE_PREFIX
Comparing 2 nodes with different namespace prefixesstatic Difference
DifferenceConstants. NAMESPACE_URI
Comparing 2 nodes with different namespace URIsstatic Difference
DifferenceConstants. NO_NAMESPACE_SCHEMA_LOCATION
Comparing 2 nodes with different xsi:noNamespaceSchemaLocation attributes, potentially only one of the two provides such an attribute at all.static Difference
DifferenceConstants. NODE_TYPE
Comparing 2 nodes with different node typesstatic Difference
DifferenceConstants. PROCESSING_INSTRUCTION_DATA
Comparing 2 processing instructions with different instructionsstatic Difference
DifferenceConstants. PROCESSING_INSTRUCTION_TARGET
Comparing 2 processing instructions with different targetsstatic Difference
DifferenceConstants. SCHEMA_LOCATION
Comparing 2 nodes with different xsi:schemaLocation attributes, potentially only one of the two provides such an attribute at all.static Difference
DifferenceConstants. TEXT_VALUE
Comparing 2 different text valuesFields in org.custommonkey.xmlunit with type parameters of type Difference Modifier and Type Field Description private java.util.List<Difference>
DetailedDiff. allDifferences
Methods in org.custommonkey.xmlunit that return types with arguments of type Difference Modifier and Type Method Description java.util.List<Difference>
DetailedDiff. getAllDifferences()
Obtain all the differences found by this instancestatic java.lang.Iterable<Difference>
NewDifferenceEngine. toDifference(Comparison comp)
private static java.lang.Iterable<Difference>
NewDifferenceEngine. toDifference(Difference d)
Methods in org.custommonkey.xmlunit with parameters of type Difference Modifier and Type Method Description private void
Diff. appendDifference(java.lang.StringBuilder appendTo, Difference difference)
Append a meaningful message to the buffer of messagesprotected void
DifferenceEngine. compare(java.lang.Object expected, java.lang.Object actual, org.w3c.dom.Node control, org.w3c.dom.Node test, DifferenceListener listener, Difference difference)
If the expected and actual values are unequal then inform the listener of a difference and throw a DifferenceFoundException.protected void
DifferenceEngine. compare(java.lang.Object expected, java.lang.Object actual, org.w3c.dom.Node control, org.w3c.dom.Node test, DifferenceListener listener, Difference difference, XpathNodeTracker controlLoc, XpathNodeTracker testLoc)
If the expected and actual values are unequal then inform the listener of a difference and throw a DifferenceFoundException.private void
DifferenceEngine. compareCharacterData(org.w3c.dom.CharacterData control, org.w3c.dom.CharacterData test, DifferenceListener listener, Difference difference)
Character comparison method used by comments, text and CDATA sectionsint
DetailedDiff. differenceFound(Difference difference)
DifferenceListener implementation.int
Diff. differenceFound(Difference difference)
DifferenceListener implementation.int
DifferenceListener. differenceFound(Difference difference)
Receive notification that 2 nodes are different.int
IgnoreTextAndAttributeValuesDifferenceListener. differenceFound(Difference difference)
int
Diff. evaluate(Difference difference)
boolean
ComparisonController. haltComparison(Difference afterDifference)
Determine whether a Difference that the listener has been notified of should halt further XML comparison.boolean
DetailedDiff. haltComparison(Difference afterDifference)
ComparisonController implementation.boolean
Diff. haltComparison(Difference afterDifference)
ComparisonController implementation.private boolean
IgnoreTextAndAttributeValuesDifferenceListener. isIgnoredDifference(Difference difference)
void
MatchTracker. matchFound(Difference match)
Receive notification that 2 match.Constructors in org.custommonkey.xmlunit with parameters of type Difference Constructor Description Difference(Difference prototype, NodeDetail controlNodeDetail, NodeDetail testNodeDetail)
Copy constructor using prototype Difference and encountered NodeDetails -
Uses of Difference in org.custommonkey.xmlunit.examples
Methods in org.custommonkey.xmlunit.examples with parameters of type Difference Modifier and Type Method Description protected int
TextDifferenceListenerBase. attributeDifference(Difference d)
Delegates totextualDifference
.protected int
TextDifferenceListenerBase. cdataDifference(Difference d)
Delegates totextualDifference
.protected int
TextDifferenceListenerBase. commentDifference(Difference d)
Delegates totextualDifference
.int
TextDifferenceListenerBase. differenceFound(Difference difference)
Delegates to the nested DifferenceListener unless the Difference is of typeATTR_VALUE_ID
,CDATA_VALUE_ID
,COMMENT_VALUE_ID
orTEXT_VALUE_ID
- for those special differencesattributeDifference
,cdataDifference
,commentDifference
ortextDifference
are invoked respectively.protected int
TextDifferenceListenerBase. textDifference(Difference d)
Delegates totextualDifference
.protected int
CaseInsensitiveDifferenceListener. textualDifference(Difference d)
protected int
FloatingPointTolerantDifferenceListener. textualDifference(Difference d)
protected int
TextDifferenceListenerBase. textualDifference(Difference d)
Delegates to the nested DifferenceListener.
-