|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.custommonkey.xmlunit.examples.TextDifferenceListenerBase
org.custommonkey.xmlunit.examples.FloatingPointTolerantDifferenceListener
public class FloatingPointTolerantDifferenceListener
Expects texts to be floating point numbers and treats them as identical if they only differ by a given tolerance value (or less).
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 | |
---|---|
FloatingPointTolerantDifferenceListener(DifferenceListener delegateTo,
double tolerance)
|
Method Summary | |
---|---|
protected int |
textualDifference(Difference d)
Delegates to the nested DifferenceListener. |
Methods inherited from class org.custommonkey.xmlunit.examples.TextDifferenceListenerBase |
---|
attributeDifference, cdataDifference, commentDifference, differenceFound, skippedComparison, textDifference |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FloatingPointTolerantDifferenceListener(DifferenceListener delegateTo, double tolerance)
Method Detail |
---|
protected int textualDifference(Difference d)
TextDifferenceListenerBase
textualDifference
in class TextDifferenceListenerBase
|
XMLUnit is hosted by sourceforge.net |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |