|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.matchers.ExpressionMatcher
public class ExpressionMatcher
Allows the caller to specify an expression in Apache JEXL (Java Extended Expression Language). The expression must evaluate to a boolean expression (true or false). The source and target are referenced in the expression using the pseudo-variables expected.value and actual.value.
Constructor Summary | |
---|---|
ExpressionMatcher()
Instantiate a ExpressionMatcher object |
Method Summary | |
---|---|
boolean |
isEqual(java.lang.String source,
java.lang.String target,
java.util.Map args)
Returns the result of the specified expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionMatcher()
Method Detail |
---|
public boolean isEqual(java.lang.String source, java.lang.String target, java.util.Map args) throws SQLUnitException
isEqual
in interface IMatcher
source
- the value of the source to match.target
- the value of the target to match.args
- any extra parameters specified as name-value pairs with
embedded arg elements.
SQLUnitException
- if there was a problem.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |