net.javacrumbs.smock.common
Class EnhancedDiff

java.lang.Object
  extended by org.custommonkey.xmlunit.Diff
      extended by net.javacrumbs.smock.common.EnhancedDiff
All Implemented Interfaces:
org.custommonkey.xmlunit.ComparisonController, org.custommonkey.xmlunit.DifferenceListener

public final class EnhancedDiff
extends org.custommonkey.xmlunit.Diff

Diff that ignores "${IGNORE}" placeholder and is able to correctly compare namespace prefixes in the attribute values.

Author:
Lukas Krecan

Field Summary
 
Fields inherited from interface org.custommonkey.xmlunit.DifferenceListener
RETURN_ACCEPT_DIFFERENCE, RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL, RETURN_IGNORE_DIFFERENCE_NODES_SIMILAR, RETURN_UPGRADE_DIFFERENCE_NODES_DIFFERENT
 
Constructor Summary
EnhancedDiff(Document controlDoc, Document testDoc)
           
 
Method Summary
 int differenceFound(org.custommonkey.xmlunit.Difference difference)
           
protected  boolean isDifferenceOnlyInAttributeValuePrefix(org.custommonkey.xmlunit.Difference difference)
          Returns true iff difference is only in attribute value namespace prefix but the corresponding namespace is same.
 
Methods inherited from class org.custommonkey.xmlunit.Diff
appendMessage, compare, haltComparison, identical, overrideDifferenceListener, overrideElementQualifier, overrideMatchTracker, similar, skippedComparison, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnhancedDiff

public EnhancedDiff(Document controlDoc,
                    Document testDoc)
Method Detail

differenceFound

public int differenceFound(org.custommonkey.xmlunit.Difference difference)
Specified by:
differenceFound in interface org.custommonkey.xmlunit.DifferenceListener
Overrides:
differenceFound in class org.custommonkey.xmlunit.Diff

isDifferenceOnlyInAttributeValuePrefix

protected final boolean isDifferenceOnlyInAttributeValuePrefix(org.custommonkey.xmlunit.Difference difference)
Returns true iff difference is only in attribute value namespace prefix but the corresponding namespace is same.

Parameters:
difference -
Returns:


Copyright © 2011. All Rights Reserved.