|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.custommonkey.xmlunit.examples.RecursiveElementNameAndTextQualifier
public class RecursiveElementNameAndTextQualifier
Compares all Element and Text nodes in two pieces of XML. Allows elements of complex, deeply nested types that are returned in different orders but have the same content to be recognized as comparable.
Constructor Summary | |
---|---|
RecursiveElementNameAndTextQualifier()
Uses element names and the text nested an arbitrary level of child elements deeper into the element to compare elements. |
Method Summary | |
---|---|
boolean |
qualifyForComparison(org.w3c.dom.Element currentControl,
org.w3c.dom.Element currentTest)
Returns result of recursive comparison of all the nodes of a control and test element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecursiveElementNameAndTextQualifier()
Does not ignore empty text nodes.
Method Detail |
---|
public boolean qualifyForComparison(org.w3c.dom.Element currentControl, org.w3c.dom.Element currentTest)
qualifyForComparison
in interface ElementQualifier
currentControl
- an Element from the control XML NodeListcurrentTest
- an Element from the test XML NodeList
|
XMLUnit is hosted by sourceforge.net |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |