use of io.cucumber.plugin.StrictAware in project cucumber-jvm by cucumber.
the class Plugins method setStrictOnStrictAwarePlugins.
private void setStrictOnStrictAwarePlugins(Plugin plugin) {
if (plugin instanceof StrictAware) {
StrictAware strictAware = (StrictAware) plugin;
strictAware.setStrict(true);
}
}
use of io.cucumber.plugin.StrictAware in project cucumber-jvm by cucumber.
the class PluginsTest method shouldSetStrictOnPlugin.
@Test
void shouldSetStrictOnPlugin() {
RuntimeOptions runtimeOptions = RuntimeOptions.defaultOptions();
Plugins plugins = new Plugins(pluginFactory, runtimeOptions);
StrictAware plugin = mock(StrictAware.class);
plugins.addPlugin(plugin);
verify(plugin).setStrict(true);
}
Aggregations