Package io.cucumber.core.runner
Class PickleStepTestStep
java.lang.Object
io.cucumber.core.runner.TestStep
io.cucumber.core.runner.PickleStepTestStep
- All Implemented Interfaces:
Step,PickleStepTestStep,TestStep
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<HookTestStep> private final List<HookTestStep> private final PickleStepDefinitionMatchprivate final Stepprivate final URI -
Constructor Summary
ConstructorsConstructorDescriptionPickleStepTestStep(UUID id, URI uri, Step step, PickleStepDefinitionMatch definitionMatch) PickleStepTestStep(UUID id, URI uri, Step step, List<HookTestStep> beforeStepHookSteps, List<HookTestStep> afterStepHookSteps, PickleStepDefinitionMatch definitionMatch) -
Method Summary
Modifier and TypeMethodDescription(package private) List<HookTestStep> (package private) List<HookTestStep> Returns the arguments provided to the step definition.intgetLine()The pattern or expression used to match the glue code to the Gherkin step.getStep()The matched Gherkin step@Nullable StepArgumentDeprecated.intDeprecated.Deprecated.getText()getUri()A uri to to the feature of this step.(package private) ExecutionModerun(TestCase testCase, EventBus bus, TestCaseState state, ExecutionMode executionMode) Methods inherited from class io.cucumber.core.runner.TestStep
getCodeLocation, getIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.cucumber.plugin.event.TestStep
getCodeLocation, getId
-
Field Details
-
uri
-
step
-
afterStepHookSteps
-
beforeStepHookSteps
-
definitionMatch
-
-
Constructor Details
-
PickleStepTestStep
PickleStepTestStep(UUID id, URI uri, Step step, PickleStepDefinitionMatch definitionMatch) -
PickleStepTestStep
PickleStepTestStep(UUID id, URI uri, Step step, List<HookTestStep> beforeStepHookSteps, List<HookTestStep> afterStepHookSteps, PickleStepDefinitionMatch definitionMatch)
-
-
Method Details
-
run
ExecutionMode run(TestCase testCase, EventBus bus, TestCaseState state, ExecutionMode executionMode) -
getBeforeStepHookSteps
List<HookTestStep> getBeforeStepHookSteps() -
getAfterStepHookSteps
List<HookTestStep> getAfterStepHookSteps() -
getPattern
Description copied from interface:PickleStepTestStepThe pattern or expression used to match the glue code to the Gherkin step.- Specified by:
getPatternin interfacePickleStepTestStep- Returns:
- a pattern or expression
-
getStep
Description copied from interface:PickleStepTestStepThe matched Gherkin step- Specified by:
getStepin interfacePickleStepTestStep- Returns:
- the matched step
-
getDefinitionArgument
Description copied from interface:PickleStepTestStepReturns the arguments provided to the step definition.For example the step definition
Given (.*) pickleswhen matched withGiven 15 pickleswill receive as argument"15".- Specified by:
getDefinitionArgumentin interfacePickleStepTestStep- Returns:
- argument provided to the step definition
-
getDefinitionMatch
-
getStepArgument
Deprecated.Description copied from interface:PickleStepTestStepReturns arguments provided to the Gherkin step. E.g: a data table or doc string.- Specified by:
getStepArgumentin interfacePickleStepTestStep- Returns:
- arguments provided to the gherkin step.
-
getStepLine
Deprecated.Description copied from interface:PickleStepTestStepThe line in the feature file defining this step.- Specified by:
getStepLinein interfacePickleStepTestStep- Returns:
- a line number
-
getUri
Description copied from interface:PickleStepTestStepA uri to to the feature of this step.- Specified by:
getUriin interfacePickleStepTestStep- Returns:
- a uri
-
getStepText
Deprecated.Description copied from interface:PickleStepTestStepThe full text of the Gherkin step.- Specified by:
getStepTextin interfacePickleStepTestStep- Returns:
- the step text
-
getKeyword
- Specified by:
getKeywordin interfaceStep
-
getText
-
getLine
public int getLine()
-