org.apache.wink.test.diff
Class DiffIgnoreUpdateWithAttributeQualifier
java.lang.Object
org.custommonkey.xmlunit.Diff
org.apache.wink.test.diff.DiffWithAttributeQualifier
org.apache.wink.test.diff.DiffIgnoreUpdateWithAttributeQualifier
- All Implemented Interfaces:
- org.custommonkey.xmlunit.ComparisonController, org.custommonkey.xmlunit.DifferenceListener
public class DiffIgnoreUpdateWithAttributeQualifier
- extends DiffWithAttributeQualifier
Class that overrides XmlUnit DiffWithAttributeQualifier class. It is
designated to ignore fields with time values, like "updated".
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 |
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 |
DiffIgnoreUpdateWithAttributeQualifier
public DiffIgnoreUpdateWithAttributeQualifier(org.w3c.dom.Document controlDocument,
org.w3c.dom.Document testedDocument)
- Constructor of XmlUnit Diff that ignores field "updated". XQuery of
omitted field: /feed[1]/updated[1]/text()[1]
- Parameters:
controlDocument
- XML document that contains expected resultstestedDocument
- XML document which is being tested
DiffIgnoreUpdateWithAttributeQualifier
public DiffIgnoreUpdateWithAttributeQualifier(java.lang.String controlDocument,
java.lang.String testedDocument)
throws java.io.IOException,
org.xml.sax.SAXException
- Constructor of XmlUnit Diff that ignores field "updated". XQuery of
omitted field: /feed[1]/updated[1]/text()[1]
- 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.