Interface Backend


@API(status=STABLE) public interface Backend
  • 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.
      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 implement ScenarioScoped
    • disposeWorld

      default void disposeWorld()
      Invoked at the end of a scenario, after hooks
    • getSnippet

      default @Nullable Snippet getSnippet()