Class CucumberModules


  • @API(status=STABLE)
    public final class CucumberModules
    extends Object
    Provides a convenient Module instance that contains bindings for ScenarioScoped annotation and for ScenarioScope.
    • Field Detail

      • SCENARIO

        @Deprecated
        public static final com.google.inject.Module SCENARIO
        Deprecated.
        please use createScenarioModule() instead
        A convenient instance of Module. Should only be used in combination with CucumberScopes.SCENARIO.

        Note that using this in combination with parallel execution results in undefined behaviour.

    • Method Detail

      • createScenarioModule

        public static com.google.inject.Module createScenarioModule()
      • createScenarioModule

        public static com.google.inject.Module createScenarioModule​(ScenarioScope scenarioScope)