use of io.cucumber.core.backend.ScenarioScoped in project cucumber-jvm by cucumber.
the class CachingGlue method removeScenarioScopedGlue.
private void removeScenarioScopedGlue(Iterable<?> glues) {
Iterator<?> glueIterator = glues.iterator();
while (glueIterator.hasNext()) {
Object glue = glueIterator.next();
if (glue instanceof ScenarioScoped) {
ScenarioScoped scenarioScoped = (ScenarioScoped) glue;
scenarioScoped.dispose();
glueIterator.remove();
}
}
}
Aggregations