Package io.cucumber.messages.types
Class Step
- java.lang.Object
-
- io.cucumber.messages.types.Step
-
public final class Step extends Object
Represents the Step message in Cucumber's message protocol- See Also:
- Github - Cucumber - Messages A step
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Optional<DataTable>getDataTable()Optional<DocString>getDocString()StringgetId()Unique ID to be able to reference the Step from PickleStepStringgetKeyword()The actual keyword as it appeared in the source.Optional<StepKeywordType>getKeywordType()The test phase signalled by the keyword: Context definition (Given), Action performance (When), Outcome assertion (Then).LocationgetLocation()The location of the steps' `keyword`StringgetText()inthashCode()StringtoString()
-
-
-
Method Detail
-
getLocation
public Location getLocation()
The location of the steps' `keyword`
-
getKeyword
public String getKeyword()
The actual keyword as it appeared in the source.
-
getKeywordType
public Optional<StepKeywordType> getKeywordType()
The test phase signalled by the keyword: Context definition (Given), Action performance (When), Outcome assertion (Then). Other keywords signal Continuation (And and But) from a prior keyword. Please note that all translations which a dialect maps to multiple keywords (`*` is in this category for all dialects), map to 'Unknown'.
-
getText
public String getText()
-
getId
public String getId()
Unique ID to be able to reference the Step from PickleStep
-
-