Package io.cucumber.core.backend
Interface StepDefinition
- All Superinterfaces:
Located
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Invokes the step definition.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()- Returns:
- parameter information, may not return null
-
getPattern
String getPattern()- Returns:
- the pattern associated with this instance. Used for error reporting only.
-