- All Superinterfaces:
Located
@API(status=STABLE)
public interface StepDefinition
extends Located
-
Method Summary
void
Invokes the step definition.
Return the pattern associated with this instance.
Return parameter information.
-
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 step
CucumberInvocationTargetException - in case of a failure in the
step.
-
parameterInfos
Return parameter information.
- Returns:
- parameter information, may not return null
-
getPattern
Return the pattern associated with this instance. Used for error
reporting only.
- Returns:
- the pattern associated with this instance.