|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.matchers.TypelessPercentageMatcher
public class TypelessPercentageMatcher
The TypelessPercentageMatcher matches columns which may differ by a specified percentage. This can be useful when comparing numeric values across data types which have different default precisions.
Constructor Summary | |
---|---|
TypelessPercentageMatcher()
Default constructor. |
Method Summary | |
---|---|
boolean |
isEqual(java.lang.String source,
java.lang.String target,
java.util.Map args)
Returns true if the value of the target is withing (+/-) a specified percentage tolerance value of the source if the source and target can both be converted to doubles. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypelessPercentageMatcher()
Method Detail |
---|
public final boolean isEqual(java.lang.String source, java.lang.String target, java.util.Map args) throws SQLUnitException
isEqual
in interface IMatcher
source
- the String representing the source to be matched.target
- the String representing the target to be matched.args
- a Map of name value pairs of arguments passed in.
SQLUnitException
- if there was a problem with matching.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |