Package io.cucumber.messages.types
Class TestStep
- java.lang.Object
-
- io.cucumber.messages.types.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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Optional<String>getHookId()Pointer to the `Hook` (if derived from a Hook)StringgetId()Optional<String>getPickleStepId()Pointer to the `PickleStep` (if derived from a `PickleStep`)Optional<List<String>>getStepDefinitionIds()Pointer to all the matching `StepDefinition`s (if derived from a `PickleStep`) Each element represents a matching step definition.Optional<List<StepMatchArgumentsList>>getStepMatchArgumentsLists()A list of list of StepMatchArgument (if derived from a `PickleStep`).inthashCode()StringtoString()
-
-
-
Method Detail
-
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`) Each element represents a matching step definition. A size of 0 means `UNDEFINED`, and a size of 2+ means `AMBIGUOUS`
-
getStepMatchArgumentsLists
public Optional<List<StepMatchArgumentsList>> getStepMatchArgumentsLists()
A list of list of StepMatchArgument (if derived from a `PickleStep`).
-
-