Package org.jbehave.core.expressions
Class ExpressionResolver
java.lang.Object
org.jbehave.core.expressions.ExpressionResolver
-
Constructor Summary
ConstructorDescriptionExpressionResolver
(Set<ExpressionProcessor<?>> expressionProcessors, ExpressionResolverMonitor expressionResolverMonitor) -
Method Summary
Modifier and TypeMethodDescriptionresolveExpressions
(boolean dryRun, String stringWithExpressions) Evaluates expressions including nested ones.
-
Constructor Details
-
ExpressionResolver
public ExpressionResolver(Set<ExpressionProcessor<?>> expressionProcessors, ExpressionResolverMonitor expressionResolverMonitor)
-
-
Method Details
-
resolveExpressions
Evaluates expressions including nested ones.
Syntax:
#{expression(arguments...)} #{expression(arguments..., #{expression(arguments...)})} #{expression(arguments..., #{expression})}
Example:
#{shiftDate("1942-12-02T01:23:40+04:00", "yyyy-MM-dd'T'HH:mm:ssz", "P43Y4M3W3D")}
#{encodeToBase64(#{fromEpochSecond(-523641111)})}- Parameters:
stringWithExpressions
- the string with expressions to evaluate- Returns:
- the resulting string with expression placeholders replaced with expressions evaluation results
-