Package io.cucumber.core.backend
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
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
dispose()
Disposes of the test execution context.
-
-
-
Method Detail
-
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.
-
-