Package io.cucumber.core.backend
Interface StepDefinition
- All Superinterfaces:
Located
- All Known Implementing Classes:
CoreStepDefinition,Java8StepDefinition,JavaStepDefinition,NoStepDefinition
-
Method Summary
Modifier and TypeMethodDescriptionvoidInvokes the step definition.Return the pattern associated with this instance.Return parameter information.Methods inherited from interface io.cucumber.core.backend.Located
getLocation, getSourceReference, isDefinedAt
-
Method Details
-
execute
Invokes the step definition. The method should raise a Throwable if the invocation fails, which will cause the step to fail.- Parameters:
args- The arguments for the step- Throws:
CucumberBackendException- of a failure to invoke the stepCucumberInvocationTargetException- in case of a failure in the step.
-
parameterInfos
List<ParameterInfo> parameterInfos()Return parameter information.- Returns:
- parameter information, may not return null
-
getPattern
String getPattern()Return the pattern associated with this instance. Used for error reporting only.- Returns:
- the pattern associated with this instance.
-