Search in sources :

Example 1 with ScenarioScoped

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();
        }
    }
}
Also used : ScenarioScoped(io.cucumber.core.backend.ScenarioScoped)

Aggregations

ScenarioScoped (io.cucumber.core.backend.ScenarioScoped)1