Class CoreHookDefinition.ScenarioScopedCoreHookDefinition

java.lang.Object
io.cucumber.core.runner.CoreHookDefinition
io.cucumber.core.runner.CoreHookDefinition.ScenarioScopedCoreHookDefinition
All Implemented Interfaces:
ScenarioScoped
Enclosing class:
CoreHookDefinition

static final class CoreHookDefinition.ScenarioScopedCoreHookDefinition extends CoreHookDefinition implements ScenarioScoped
  • Constructor Details

    • ScenarioScopedCoreHookDefinition

      private ScenarioScopedCoreHookDefinition(UUID id, HookDefinition delegate)
  • Method Details

    • dispose

      public void dispose()
      Description copied from interface: ScenarioScoped
      Disposes of the test execution context.

      Scenario scoped step definition may be used in events. Thus retaining a potential reference to the test execution context. When many tests are used this may result in an over consumption of memory. Disposing of the execution context resolves this problem.

      Specified by:
      dispose in interface ScenarioScoped