org.apache.wink.test.diff
Class DiffIgnoreUpdateWithAttributeQualifier

java.lang.Object
  extended by org.custommonkey.xmlunit.Diff
      extended by org.apache.wink.test.diff.DiffWithAttributeQualifier
          extended by 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.


Field Summary
 
Fields inherited from interface org.custommonkey.xmlunit.DifferenceListener
RETURN_ACCEPT_DIFFERENCE, RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL, RETURN_IGNORE_DIFFERENCE_NODES_SIMILAR
 
Constructor Summary
DiffIgnoreUpdateWithAttributeQualifier(org.w3c.dom.Document controlDocument, org.w3c.dom.Document testedDocument)
          Constructor of XmlUnit Diff that ignores field "updated".
DiffIgnoreUpdateWithAttributeQualifier(java.lang.String controlDocument, java.lang.String testedDocument)
          Constructor of XmlUnit Diff that ignores field "updated".
 
Method Summary
 
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
 

Constructor Detail

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 results
testedDocument - 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 results
testedDocument - 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.