Package io.cucumber.core.backend
Interface Backend
-
@API(status=STABLE) public interface Backend
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
buildWorld()
Invoked before a new scenario starts.void
disposeWorld()
Invoked at the end of a scenario, after hooksSnippet
getSnippet()
void
loadGlue(Glue glue, List<URI> gluePaths)
Invoked once before all features.
-
-
-
Method Detail
-
loadGlue
void loadGlue(Glue glue, List<URI> gluePaths)
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
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
void disposeWorld()
Invoked at the end of a scenario, after hooks
-
getSnippet
Snippet getSnippet()
-
-