Package io.cucumber.core.backend
Interface ScenarioScoped
Deprecated.
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 TypeMethodDescriptiondefault void
dispose()
Deprecated.Disposes of the test execution context.
-
Method Details
-
dispose
default void dispose()Deprecated.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.
-
Backend.buildWorld()
and transparently dispose of any closures duringBackend.disposeWorld()
.