Package io.cucumber.core.runner
Class NoStepDefinition
java.lang.Object
io.cucumber.core.runner.NoStepDefinition
- All Implemented Interfaces:
Located,StepDefinition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvokes the step definition.Location of step definition.Return the pattern associated with this instance.booleanisDefinedAt(StackTraceElement stackTraceElement) Return true if this matches the location.Return parameter information.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.cucumber.core.backend.Located
getSourceReference
-
Constructor Details
-
NoStepDefinition
NoStepDefinition()
-
-
Method Details
-
execute
Description copied from interface:StepDefinitionInvokes the step definition. The method should raise a Throwable if the invocation fails, which will cause the step to fail.- Specified by:
executein interfaceStepDefinition- Parameters:
args- The arguments for the step
-
parameterInfos
Description copied from interface:StepDefinitionReturn parameter information.- Specified by:
parameterInfosin interfaceStepDefinition- Returns:
- parameter information, may not return null
-
getPattern
Description copied from interface:StepDefinitionReturn the pattern associated with this instance. Used for error reporting only.- Specified by:
getPatternin interfaceStepDefinition- Returns:
- the pattern associated with this instance.
-
isDefinedAt
Description copied from interface:LocatedReturn true if this matches the location. This is used to filter stack traces.- Specified by:
isDefinedAtin interfaceLocated- Parameters:
stackTraceElement- The location of the step.- Returns:
- Return true if this matches the location.
-
getLocation
Description copied from interface:LocatedLocation of step definition. Can either be a a method or stack trace style location.Examples:
-
com.example.StepDefinitions.given_an_example(io.cucumber.datatable.DataTable) com.example.StepDefinitions.<init>(StepDefinitions.java:9)
- Specified by:
getLocationin interfaceLocated- Returns:
- The source line of the step definition.
-
-