Class Suggestion

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

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

A suggested fragment of code to implement an undefined step

  • Constructor Details

  • Method Details

    • getId

      public String getId()
      A unique id for this suggestion
    • getPickleStepId

      public String getPickleStepId()
      The ID of the `PickleStep` this `Suggestion` was created for.
    • getSnippets

      public List<Snippet> getSnippets()
      A collection of code snippets that could implement the undefined step
    • 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