|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.custommonkey.xmlunit.Diff
org.custommonkey.xmlunit.DetailedDiff
public class DetailedDiff
Compares and describes all the differences between two XML documents.
The document comparison does not stop once the first unrecoverable difference
is found, unlike the Diff class.
Note that because the differences are described relative to some control XML
the list of all differences when A is compared to B will not
necessarily be the same as when B is compared to A.
Examples and more at xmlunit.sourceforge.net
Field Summary |
---|
Fields inherited from interface org.custommonkey.xmlunit.DifferenceListener |
---|
RETURN_ACCEPT_DIFFERENCE, RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL, RETURN_IGNORE_DIFFERENCE_NODES_SIMILAR, RETURN_UPGRADE_DIFFERENCE_NODES_DIFFERENT |
Constructor Summary | |
---|---|
DetailedDiff(Diff prototype)
Create a new instance based on a prototypical Diff instance |
Method Summary | |
---|---|
int |
differenceFound(Difference difference)
DifferenceListener implementation. |
java.util.List |
getAllDifferences()
Obtain all the differences found by this instance |
boolean |
haltComparison(Difference afterDifference)
ComparisonController implementation. |
Methods inherited from class org.custommonkey.xmlunit.Diff |
---|
appendMessage, compare, identical, overrideDifferenceListener, overrideElementQualifier, overrideMatchTracker, similar, skippedComparison, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DetailedDiff(Diff prototype)
prototype
- the Diff instance for which more detailed difference
information is requiredMethod Detail |
---|
public int differenceFound(Difference difference)
differenceFound
in interface DifferenceListener
differenceFound
in class Diff
expected
- actual
- control
- test
- comparingWhat
-
public boolean haltComparison(Difference afterDifference)
haltComparison
in interface ComparisonController
haltComparison
in class Diff
afterDifference
-
Difference.isRecoverable()
public java.util.List getAllDifferences()
differences
|
XMLUnit is hosted by sourceforge.net |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |