org.jbehave.core.steps
Class PatternVariantBuilder

java.lang.Object
  extended by org.jbehave.core.steps.PatternVariantBuilder

public class PatternVariantBuilder
extends Object

Builds a set of pattern variants of given pattern input, supporting a custom directives. Depending on the directives present, one or more resulting variants are created.

Currently supported directives are

Pattern Result
..A {x|y} B..
  • ..A x B..
  • ..A y B..
..A {x|y|} B..
  • ..A x B..
  • ..A y B..
  • ..A B..
..A {x} B..
  • ..A x B..

These directives can be used to conveniently create several variants of a step pattern, without having to repeat it as a whole as one or more aliases.

Examples: