|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.matchers.RangeMatcher
public class RangeMatcher
The RangeMatcher is an implementation of the IMatcher interface used to define rulesets for matching columns in SQLUnit. This matcher will accept an absolute tolerance value and check to see that the target is within (+/-) tolerance of the source.
Constructor Summary | |
---|---|
RangeMatcher()
Default constructor as per contract with IMatcher. |
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 tolerance value of the source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RangeMatcher()
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 All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |