Interface ScriptEvaluator
- All Known Implementing Classes:
ScriptEngineScriptEvaluator
Used to evaluate script expressions for
ScriptAssert
and ParameterScriptAssert
constraints.
The default implementation ScriptEngineScriptEvaluator
is a wrapper around JSR 223
ScriptEngine
s. It can also be any user specific implementation.
- Since:
- 6.0.3
- Author:
- Marko Bekhta
-
Method Summary
-
Method Details
-
evaluate
Evaluates ascript
expression and returns the result of this evaluation.- Parameters:
script
- a script to evaluatebindings
- the bindings to be used- Returns:
- the result of script evaluation
- Throws:
ScriptEvaluationException
- in case an error occurred during the script evaluation
-