@API(status=STABLE)
public interface Backend
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidInvoked before a new scenario starts.default voidInvoked at the end of a scenario, after hooksdefault @Nullable Snippetdefault voidloadGlue(Glue glue, GlueDiscoveryRequest request) Invoked once before all features.default voidDeprecated.
-
Method Details
-
loadGlue
@API(status=EXPERIMENTAL, since="8.0.0") default void loadGlue(Glue glue, GlueDiscoveryRequest request) Invoked once before all features. This is where steps and hooks should be loaded.- Parameters:
glue- Glue that provides the steps to be executed.request- A request to discover glue code in specific locations.
-
loadGlue
@Deprecated @API(status=DEPRECATED, since="8.0.0") default void loadGlue(Glue glue, List<URI> gluePaths) Deprecated.useloadGlue(Glue, GlueDiscoveryRequest)instead.Invoked once before all features. This is where steps and hooks should be loaded.- Parameters:
glue- Glue that provides the steps to be executed.gluePaths- The locations for the glue to be loaded.
-
buildWorld
default void buildWorld()Invoked before a new scenario starts. Implementations should do any necessary setup of new, isolated state here. Additional scenario scoped step definitions can be loaded here. These step definitions should implementScenarioScoped -
disposeWorld
default void disposeWorld()Invoked at the end of a scenario, after hooks -
getSnippet
-
loadGlue(Glue, GlueDiscoveryRequest)instead.