org.apache.wink.test.diff
Class DiffWithAttributeQualifier
java.lang.Object
org.custommonkey.xmlunit.Diff
org.apache.wink.test.diff.DiffWithAttributeQualifier
- All Implemented Interfaces:
- org.custommonkey.xmlunit.ComparisonController, org.custommonkey.xmlunit.DifferenceListener
- Direct Known Subclasses:
- DiffIgnoreUpdateWithAttributeQualifier
public class DiffWithAttributeQualifier
- extends org.custommonkey.xmlunit.Diff
Class that overrides XmlUnit Diff class. Only Elements with the same name as
well as the same values for all attributes qualify. The order of elements is
ignored. The qualifier is ElementNameAndAttributeQualifier
with no
argument.
It is implemented to be used by Stm application tests for XML comparison.
Fields inherited from interface org.custommonkey.xmlunit.DifferenceListener |
RETURN_ACCEPT_DIFFERENCE, RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL, RETURN_IGNORE_DIFFERENCE_NODES_SIMILAR |
Constructor Summary |
DiffWithAttributeQualifier(org.w3c.dom.Document controlDocument,
org.w3c.dom.Document testedDocument)
Constructor of XmlUnit Diff with ElementNameAndAttributeQualifier |
DiffWithAttributeQualifier(java.lang.String controlDocument,
java.lang.String testedDocument)
Constructor of XmlUnit Diff with ElementNameAndAttributeQualifier |
Methods inherited from class org.custommonkey.xmlunit.Diff |
appendMessage, compare, differenceFound, haltComparison, identical, overrideDifferenceListener, overrideElementQualifier, similar, skippedComparison, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DiffWithAttributeQualifier
public DiffWithAttributeQualifier(org.w3c.dom.Document controlDocument,
org.w3c.dom.Document testedDocument)
- Constructor of XmlUnit Diff with ElementNameAndAttributeQualifier
- Parameters:
controlDocument
- XML document that contains expected resultstestedDocument
- XML document which is being tested
DiffWithAttributeQualifier
public DiffWithAttributeQualifier(java.lang.String controlDocument,
java.lang.String testedDocument)
throws java.io.IOException,
org.xml.sax.SAXException
- Constructor of XmlUnit Diff with ElementNameAndAttributeQualifier
- Parameters:
controlDocument
- String containing XML document that contains
expected resultstestedDocument
- String containing XML document which is being
tested
- Throws:
java.io.IOException
org.xml.sax.SAXException
Copyright © 2009 The Apache Software Foundation. All Rights Reserved.