Interface Snippet


@API(status=STABLE) public interface Snippet
  • Method Details

    • template

      MessageFormat template()
      Returns:
      a MessageFormat template used to generate a snippet. The template can access the following variables:
    • tableHint

      String tableHint()
      Returns:
      a hint about alternative ways to declare a table argument
    • arguments

      String arguments(Map<String,Type> arguments)
      Constructs a string representation of the arguments a step definition should accept. The arguments are provided a map of (suggested) names and types. The arguments are ordered by their position.
      Parameters:
      arguments - ordered pairs of names and types
      Returns:
      a string representation of the arguments
    • escapePattern

      String escapePattern(String pattern)
      Parameters:
      pattern - the computed pattern that will match an undefined step
      Returns:
      an escaped representation of the pattern, if escaping is necessary.