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
    void buildWorld()
    Invoked before a new scenario starts.
    void disposeWorld()
    Invoked at the end of a scenario, after hooks
    io.cucumber.core.backend.Snippet getSnippet()  
    void loadGlue​(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:
      loadGlue in interface io.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:
      buildWorld in interface io.cucumber.core.backend.Backend
    • disposeWorld

      public void disposeWorld()
      Invoked at the end of a scenario, after hooks
      Specified by:
      disposeWorld in interface io.cucumber.core.backend.Backend
    • getSnippet

      public io.cucumber.core.backend.Snippet getSnippet()
      Specified by:
      getSnippet in interface io.cucumber.core.backend.Backend