Package io.cucumber.core.backend
Interface StepDefinition
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
execute(Object[] args)
Invokes the step definition.String
getPattern()
List<ParameterInfo>
parameterInfos()
-
Methods inherited from interface io.cucumber.core.backend.Located
getLocation, getSourceReference, isDefinedAt
-
-
-
-
Method Detail
-
execute
void execute(Object[] args) throws CucumberBackendException, CucumberInvocationTargetException
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.
-
-