Class TestStep


  • public final class TestStep
    extends Object
    Represents the TestStep message in Cucumber's message protocol
    See Also:
    Github - Cucumber - Messages A `TestStep` is derived from either a `PickleStep` combined with a `StepDefinition`, or from a `Hook`.
    • Method Detail

      • getHookId

        public Optional<String> getHookId()
        Pointer to the `Hook` (if derived from a Hook)
      • getId

        public String getId()
      • getPickleStepId

        public Optional<String> getPickleStepId()
        Pointer to the `PickleStep` (if derived from a `PickleStep`)
      • getStepDefinitionIds

        public Optional<List<String>> getStepDefinitionIds()
        Pointer to all the matching `StepDefinition`s (if derived from a `PickleStep`)
      • getStepMatchArgumentsLists

        public Optional<List<StepMatchArgumentsList>> getStepMatchArgumentsLists()
        A list of list of StepMatchArgument (if derived from a `PickleStep`). Each element represents a matching step definition. A size of 0 means `UNDEFINED`, and a size of 2+ means `AMBIGUOUS`
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object