Package | Description |
---|---|
org.custommonkey.xmlunit |
Root of the XMLUnit 1.x compatibility layer.
|
org.custommonkey.xmlunit.examples |
Modifier and Type | Field and Description |
---|---|
static Difference |
DifferenceConstants.ATTR_NAME_NOT_FOUND
Comparing 2 elements and one has an attribute the other does not
|
static Difference |
DifferenceConstants.ATTR_SEQUENCE
Comparing 2 attribute lists with the same attributes in different sequence
|
static Difference |
DifferenceConstants.ATTR_VALUE
Comparing 2 attributes with the same name but different values
|
static Difference |
DifferenceConstants.ATTR_VALUE_EXPLICITLY_SPECIFIED
Comparing an implied attribute value against an explicit value
|
static Difference |
DifferenceConstants.CDATA_VALUE
Comparing 2 CDATA sections with different values
|
static 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 children
|
static Difference |
DifferenceConstants.CHILD_NODELIST_SEQUENCE
Comparing 2 nodes with children whose nodes are in different sequence
|
static Difference |
DifferenceConstants.COMMENT_VALUE
Comparing 2 comments with different values
|
static Difference |
DifferenceConstants.DOCTYPE_NAME
Comparing 2 document types with different names
|
static Difference |
DifferenceConstants.DOCTYPE_PUBLIC_ID
Comparing 2 document types with different public identifiers
|
static Difference |
DifferenceConstants.DOCTYPE_SYSTEM_ID
Comparing 2 document types with different system identifiers
|
static Difference |
DifferenceConstants.ELEMENT_NUM_ATTRIBUTES
Comparing 2 elements with different number of attributes
|
static Difference |
DifferenceConstants.ELEMENT_TAG_NAME
Comparing 2 elements with different tag names
|
static Difference |
DifferenceConstants.HAS_CHILD_NODES
Comparing 2 nodes but only one has any children
|
static Difference |
DifferenceConstants.HAS_DOCTYPE_DECLARATION
Comparing 2 Documents only one of which has a doctype
|
static Difference |
DifferenceConstants.NAMESPACE_PREFIX
Comparing 2 nodes with different namespace prefixes
|
static Difference |
DifferenceConstants.NAMESPACE_URI
Comparing 2 nodes with different namespace URIs
|
static 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 types
|
static Difference |
DifferenceConstants.PROCESSING_INSTRUCTION_DATA
Comparing 2 processing instructions with different instructions
|
static Difference |
DifferenceConstants.PROCESSING_INSTRUCTION_TARGET
Comparing 2 processing instructions with different targets
|
static 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 values
|
Modifier and Type | Method and Description |
---|---|
List<Difference> |
DetailedDiff.getAllDifferences()
Obtain all the differences found by this instance
|
static Iterable<Difference> |
NewDifferenceEngine.toDifference(Comparison comp) |
Modifier and Type | Method and Description |
---|---|
protected void |
DifferenceEngine.compare(Object expected,
Object actual,
Node control,
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(Object expected,
Object actual,
Node control,
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.
|
int |
DetailedDiff.differenceFound(Difference difference)
DifferenceListener implementation.
|
int |
IgnoreTextAndAttributeValuesDifferenceListener.differenceFound(Difference difference) |
int |
Diff.differenceFound(Difference difference)
DifferenceListener implementation.
|
int |
DifferenceListener.differenceFound(Difference difference)
Receive notification that 2 nodes are different.
|
int |
Diff.evaluate(Difference difference) |
boolean |
DetailedDiff.haltComparison(Difference afterDifference)
ComparisonController implementation.
|
boolean |
Diff.haltComparison(Difference afterDifference)
ComparisonController implementation.
|
boolean |
ComparisonController.haltComparison(Difference afterDifference)
Determine whether a Difference that the listener has been notified of
should halt further XML comparison.
|
void |
MatchTracker.matchFound(Difference match)
Receive notification that 2 match.
|
Constructor and Description |
---|
Difference(Difference prototype,
NodeDetail controlNodeDetail,
NodeDetail testNodeDetail)
Copy constructor using prototype Difference and
encountered NodeDetails
|
Modifier and Type | Method and Description |
---|---|
protected int |
TextDifferenceListenerBase.attributeDifference(Difference d)
Delegates to
textualDifference . |
protected int |
TextDifferenceListenerBase.cdataDifference(Difference d)
Delegates to
textualDifference . |
protected int |
TextDifferenceListenerBase.commentDifference(Difference d)
Delegates to
textualDifference . |
int |
TextDifferenceListenerBase.differenceFound(Difference difference)
Delegates to the nested DifferenceListener unless the
Difference is of type
ATTR_VALUE_ID , CDATA_VALUE_ID , COMMENT_VALUE_ID or TEXT_VALUE_ID - for those special differences attributeDifference , cdataDifference , commentDifference or textDifference
are invoked respectively. |
protected int |
TextDifferenceListenerBase.textDifference(Difference d)
Delegates to
textualDifference . |
protected int |
TextDifferenceListenerBase.textualDifference(Difference d)
Delegates to the nested DifferenceListener.
|
protected int |
FloatingPointTolerantDifferenceListener.textualDifference(Difference d) |
protected int |
CaseInsensitiveDifferenceListener.textualDifference(Difference d) |
Copyright © 2001–2017 XMLUnit. All rights reserved.