Package io.cucumber.messages.types
Class TestStep
java.lang.Object
io.cucumber.messages.types.TestStep
Represents the TestStep message in Cucumber's message protocol
A `TestStep` is derived from either a `PickleStep` combined with a `StepDefinition`, or from a `Hook`.
When derived from a PickleStep: * For `UNDEFINED` steps `stepDefinitionIds` and `stepMatchArgumentsLists` will be empty. * For `AMBIGUOUS` steps, there will be multiple entries in `stepDefinitionIds` and `stepMatchArgumentsLists`. The first entry in the stepMatchArgumentsLists holds the list of arguments for the first matching step definition, the second entry for the second, etc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanPointer to the `Hook` (if derived from a Hook)getId()Pointer to the `PickleStep` (if derived from a `PickleStep`)Pointer to all the matching `StepDefinition`s (if derived from a `PickleStep`).A list of list of StepMatchArgument (if derived from a `PickleStep`).inthashCode()toString()
-
Constructor Details
-
TestStep
-
-
Method Details
-
getHookId
Pointer to the `Hook` (if derived from a Hook) -
getId
-
getPickleStepId
Pointer to the `PickleStep` (if derived from a `PickleStep`) -
getStepDefinitionIds
Pointer to all the matching `StepDefinition`s (if derived from a `PickleStep`).Each element represents a matching step definition.
-
getStepMatchArgumentsLists
A list of list of StepMatchArgument (if derived from a `PickleStep`).Each element represents the arguments for a matching step definition.
-
equals
-
hashCode
public int hashCode() -
toString
-