Class StepDefinition


  • @API(status=STABLE)
    public final class StepDefinition
    extends Object
    • Constructor Detail

      • StepDefinition

        public StepDefinition​(String location,
                              String pattern)
    • Method Detail

      • getLocation

        public String getLocation()
        The source line where the step definition is defined. Example: com/example/app/Cucumber.test():42
        Returns:
        The source line of the step definition.
      • getPattern

        public String getPattern()
        Returns:
        the pattern associated with this instance. Used for error reporting only.