org.apache.wink.test.diff
Class DiffWithAttributeQualifier

java.lang.Object
  extended by org.custommonkey.xmlunit.Diff
      extended by 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.


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
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
 
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

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