org.apache.commons.jexl.junit
public class Asserter extends Assert
Since: 1.0
Version: $Revision: 398153 $
Constructor Summary | |
---|---|
Asserter()
Create an asserter. | |
Asserter(Object variableValue)
This constructor will register the given variableValue as the
"this" variable.
|
Method Summary | |
---|---|
void | assertExpression(String expression, Object expected)
Performs an assertion that the value of the given Jexl expression
evaluates to the given expected value.
|
void | setVariable(String name, Object value)
Puts a variable of a certain name in the context so that it can be used from
assertion expressions.
|
Parameters: variableValue 'this'.
Parameters: expression is the Jexl expression to evaluate expected is the expected value of the expression
Throws: Exception if the expression could not be evaluationed or an assertion fails
Parameters: name variable name value variable value