public class Step extends Object
| Constructor and Description |
|---|
Step() |
| Modifier and Type | Method and Description |
|---|---|
String |
getKeyword()
Returns the keyword of the step.
|
StepKind |
getKind()
Returns the recognized type of the test step's keyword.
|
List<Parameter> |
getParameters()
Returns the parameters of the step.
|
String |
getText()
Returns the text of the test step, without the keyword.
|
boolean |
hasParameter()
Are there any parameters in the step?
|
void |
setKeyword(String keyword)
Sets the keyword of the step.
|
void |
setKind(StepKind kind)
Sets the recognized type of the test step's keyword.
|
void |
setParameters(List<Parameter> parameters)
Sets the parameters of the step.
|
void |
setText(String text)
Sets the text of the test step, without the keyword.
|
String |
toString() |
public String getKeyword()
public void setKeyword(String keyword)
keyword - the keyword of the steppublic StepKind getKind()
StepKind.UNKNOWN.
This is the case (for example) if the first step has the "And" keyword.public void setKind(StepKind kind)
kind - type of the test step's keywordpublic String getText()
public void setText(String text)
text - the text of the test steppublic boolean hasParameter()
true if step has parameterspublic List<Parameter> getParameters()
public void setParameters(List<Parameter> parameters)
null, the result of the getParameters() method will be an empty list.parameters - the parameters of the stepCreated by Kornél Simon, 2022