Uses of Interface
org.custommonkey.xmlunit.DifferenceListener
Package
Description
Root of the XMLUnit 1.x compatibility layer.
-
Uses of DifferenceListener in org.custommonkey.xmlunit
Modifier and TypeClassDescriptionclass
Compares and describes all the differences between two XML documents.class
Compares and describes any difference between XML documents.class
Class to use when performing a Diff that only compares the structure of 2 pieces of XML, i.e. where the values of text and attribute nodes should be ignored.Modifier and TypeMethodDescriptionprotected 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.void
DifferenceEngine.compare
(Node control, Node test, DifferenceListener listener, ElementQualifier elementQualifier) Entry point for Node comparison testing.void
DifferenceEngineContract.compare
(Node control, Node test, DifferenceListener listener, ElementQualifier elementQualifier) Entry point for Node comparison testing.void
NewDifferenceEngine.compare
(Node control, Node test, DifferenceListener listener, ElementQualifier elementQualifier) Entry point for Node comparison testing.protected void
DifferenceEngine.compareAttribute
(Attr control, Attr test, DifferenceListener listener) Compare two attributesprotected void
DifferenceEngine.compareCDataSection
(CDATASection control, CDATASection test, DifferenceListener listener) Compare two CDATA sections - unused, kept for backwards compatibilityprotected void
DifferenceEngine.compareComment
(Comment control, Comment test, DifferenceListener listener) Compare two commentsprotected void
DifferenceEngine.compareDocument
(Document control, Document test, DifferenceListener listener, ElementQualifier elementQualifier) Compare two Documents for doctype and then element differencesprotected void
DifferenceEngine.compareDocumentType
(DocumentType control, DocumentType test, DifferenceListener listener) Compare two DocumentType nodesprotected void
DifferenceEngine.compareElement
(Element control, Element test, DifferenceListener listener) Compare 2 elements and their attributesprotected void
DifferenceEngine.compareHasChildNodes
(Node control, Node test, DifferenceListener listener) Compare the number of children, and if the same, compare the actual children via their NodeLists.protected void
DifferenceEngine.compareNode
(Node control, Node test, DifferenceListener listener, ElementQualifier elementQualifier) First point of call: if nodes are comparable it compares node values then recurses to compare node children.protected boolean
DifferenceEngine.compareNodeBasics
(Node control, Node test, DifferenceListener listener) Compares node type and node namespace characteristics: basically determines if nodes are comparable furtherprotected void
DifferenceEngine.compareNodeChildren
(Node control, Node test, DifferenceListener listener, ElementQualifier elementQualifier) Compare the number of children, and if the same, compare the actual children via their NodeLists.protected void
DifferenceEngine.compareNodeList
(List<Node> controlChildren, List<Node> testChildren, int numNodes, DifferenceListener listener, ElementQualifier elementQualifier) Compare the contents of two node list one by one, assuming that order of children is NOT important: matching begins at same position in test list as control list.protected void
DifferenceEngine.compareProcessingInstruction
(ProcessingInstruction control, ProcessingInstruction test, DifferenceListener listener) Compare two processing instructionsprotected void
DifferenceEngine.compareRecognizedXMLSchemaInstanceAttribute
(Attr control, Attr test, DifferenceListener listener) Compare two attributesprotected void
DifferenceEngine.compareText
(CharacterData control, CharacterData test, DifferenceListener listener) Compare textprotected void
DifferenceEngine.compareText
(Text control, Text test, DifferenceListener listener) Compare text - unused, kept for backwards compatibilityvoid
Diff.overrideDifferenceListener
(DifferenceListener delegate) Override theDifferenceListener
used to determine how to handle differences that are found. -
Uses of DifferenceListener in org.custommonkey.xmlunit.examples
Modifier and TypeClassDescriptionclass
Ignores case for all textual content.class
Expects texts to be floating point numbers and treats them as identical if they only differ by a given tolerance value (or less).class
Base class that delegates all differences to another DifferenceListener.ModifierConstructorDescriptionCaseInsensitiveDifferenceListener
(DifferenceListener delegateTo) Creates a new instanceFloatingPointTolerantDifferenceListener
(DifferenceListener delegateTo, double tolerance) Creates a new instanceprotected
TextDifferenceListenerBase
(DifferenceListener delegateTo) Creates a new instance