Package io.cucumber.messages.types
Class Pickle
java.lang.Object
io.cucumber.messages.types.Pickle
Represents the Pickle message in Cucumber's message protocol
A `Pickle` represents a template for a `TestCase`. It is typically derived from another format, such as [GherkinDocument](#io.cucumber.messages.GherkinDocument). In the future a `Pickle` may be derived from other formats such as Markdown or Excel files.
By making `Pickle` the main data structure Cucumber uses for execution, the implementation of Cucumber itself becomes simpler, as it doesn't have to deal with the complex structure of a [GherkinDocument](#io.cucumber.messages.GherkinDocument).
Each `PickleStep` of a `Pickle` is matched with a `StepDefinition` to create a `TestCase`
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanPoints to the AST node locations of the pickle.getId()A unique id for the pickleThe language of the picklegetName()The name of the picklegetSteps()One or more stepsgetTags()One or more tags.getUri()The uri of the source fileinthashCode()toString()
-
Constructor Details
-
Pickle
-
-
Method Details
-
getId
A unique id for the pickle -
getUri
The uri of the source file -
getName
The name of the pickle -
getLanguage
The language of the pickle -
getSteps
One or more steps -
getTags
One or more tags. If this pickle is constructed from a Gherkin document, It includes inherited tags from the `Feature` as well. -
getAstNodeIds
Points to the AST node locations of the pickle. The last one represents the unique id of the pickle. A pickle constructed from `Examples` will have the first id originating from the `Scenario` AST node, and the second from the `TableRow` AST node. -
equals
-
hashCode
public int hashCode() -
toString
-