Class StepDefinition

java.lang.Object
io.cucumber.plugin.event.StepDefinition

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

    • StepDefinition

      public StepDefinition(String location, String pattern)
  • Method Details

    • 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.