net.javacrumbs.smock.common
Class EnhancedDiff
java.lang.Object
org.custommonkey.xmlunit.Diff
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
| 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 |
|
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 |
EnhancedDiff
public EnhancedDiff(Document controlDoc,
Document testDoc)
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.