|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.sqlunit.matchers.PercentageRangeMatcher
public class PercentageRangeMatcher
The PercentageRangeMatcher is an implementation of the IMatcher interface used to define rulesets for matching columns in SQLUnit. This matcher will accept a percentage tolerance value and check to see that the target is within (+/-) tolerance percent of the source.
| Constructor Summary | |
|---|---|
PercentageRangeMatcher()
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 PercentageRangeMatcher()
| Method Detail |
|---|
public final boolean isEqual(java.lang.String source,
java.lang.String target,
java.util.Map args)
throws SQLUnitException
isEqual in interface IMatchersource - 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 | |||||||||