Class Java8Backend

java.lang.Object
io.cucumber.java8.Java8Backend
All Implemented Interfaces:
Backend

final class Java8Backend extends Object implements Backend
  • Field Details

  • Constructor Details

  • Method Details

    • loadGlue

      public void loadGlue(Glue glue, GlueDiscoveryRequest request)
      Description copied from interface: Backend
      Invoked once before all features. This is where steps and hooks should be loaded.
      Specified by:
      loadGlue in interface Backend
      Parameters:
      glue - Glue that provides the steps to be executed.
      request - A request to discover glue code in specific locations.
    • buildWorld

      public void buildWorld()
      Description copied from interface: Backend
      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
      Specified by:
      buildWorld in interface Backend
    • disposeWorld

      public void disposeWorld()
      Description copied from interface: Backend
      Invoked at the end of a scenario, after hooks
      Specified by:
      disposeWorld in interface Backend
    • getSnippet

      public Snippet getSnippet()
      Specified by:
      getSnippet in interface Backend
    • isInstantiableLambdaGlue

      private static boolean isInstantiableLambdaGlue(Class<?> aClass)
    • isSubClassOfLambdaGlue

      private static boolean isSubClassOfLambdaGlue(Class<?> aClass)
    • isInstantiable

      private static boolean isInstantiable(Class<?> clazz)