Interface ScenarioScoped


public interface ScenarioScoped
Marks a glue class as being scenario scoped.

Instances of scenario scoped glue can not be used between scenarios and will be removed from the glue. This is useful when the glue holds a reference to a scenario scoped object (e.g. a method closure).

  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Disposes of the test execution context.
  • Method Details

    • dispose

      default void dispose()
      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.