Class ExpressionResolver

java.lang.Object
org.jbehave.core.expressions.ExpressionResolver

public class ExpressionResolver extends Object
  • Constructor Details

  • Method Details

    • resolveExpressions

      public Object resolveExpressions(boolean dryRun, String stringWithExpressions)
      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