Package cucumber.runtime
Class SerenityBackend
java.lang.Object
cucumber.runtime.SerenityBackend
- All Implemented Interfaces:
io.cucumber.core.backend.Backend
public class SerenityBackend
extends java.lang.Object
implements io.cucumber.core.backend.Backend
-
Constructor Summary
Constructors Constructor Description SerenityBackend() -
Method Summary
Modifier and Type Method Description voidbuildWorld()Invoked before a new scenario starts.voiddisposeWorld()Invoked at the end of a scenario, after hooksio.cucumber.core.backend.SnippetgetSnippet()voidloadGlue(io.cucumber.core.backend.Glue glue, java.util.List<java.net.URI> gluePaths)Invoked once before all features.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SerenityBackend
public SerenityBackend()
-
-
Method Details
-
loadGlue
public void loadGlue(io.cucumber.core.backend.Glue glue, java.util.List<java.net.URI> gluePaths)Invoked once before all features. This is where stepdefs and hooks should be loaded.- Specified by:
loadGluein interfaceio.cucumber.core.backend.Backend
-
buildWorld
public void buildWorld()Invoked before a new scenario starts. Implementations should do any necessary setup of new, isolated state here.- Specified by:
buildWorldin interfaceio.cucumber.core.backend.Backend
-
disposeWorld
public void disposeWorld()Invoked at the end of a scenario, after hooks- Specified by:
disposeWorldin interfaceio.cucumber.core.backend.Backend
-
getSnippet
public io.cucumber.core.backend.Snippet getSnippet()- Specified by:
getSnippetin interfaceio.cucumber.core.backend.Backend
-