Package io.cucumber.messages.types
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- See Also:
- Github - Cucumber - Messages An executable step
-
-
Constructor Summary
Constructors Constructor Description PickleStep(PickleStepArgument argument, List<String> astNodeIds, String id, PickleStepType type, String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Optional<PickleStepArgument>getArgument()List<String>getAstNodeIds()References the IDs of the source of the step.StringgetId()A unique ID for the PickleStepStringgetText()Optional<PickleStepType>getType()The context in which the step was specified: context (Given), action (When) or outcome (Then).inthashCode()StringtoString()
-
-
-
Constructor Detail
-
PickleStep
public PickleStep(PickleStepArgument argument, List<String> astNodeIds, String id, PickleStepType type, String text)
-
-
Method Detail
-
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()
-
-