Class PickleStep

java.lang.Object
io.cucumber.messages.types.PickleStep

public final class PickleStep extends Object
Represents the PickleStep message in Cucumber's message protocol

An executable step

  • Constructor Details

  • Method Details

    • getArgument

      public Optional<PickleStepArgument> getArgument()
    • getAstNodeIds

      public List<String> getAstNodeIds()
      References the IDs of the source of the step. For Gherkin, this can be the ID of a Step, and possibly also the ID of a TableRow
    • getId

      public String getId()
      A unique ID for the PickleStep
    • getType

      public Optional<PickleStepType> getType()
      The context in which the step was specified: context (Given), action (When) or outcome (Then).

      Note that the keywords `But` and `And` inherit their meaning from prior steps and the `*` 'keyword' doesn't have specific meaning (hence Unknown)

    • getText

      public String getText()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object