use of io.cucumber.core.options.RuntimeOptions in project cucumber-jvm by cucumber.
the class PluginsTest method shouldSetMonochromeOnPlugin.
@Test
void shouldSetMonochromeOnPlugin() {
RuntimeOptions runtimeOptions = RuntimeOptions.defaultOptions();
Plugins plugins = new Plugins(pluginFactory, runtimeOptions);
ColorAware plugin = mock(ColorAware.class);
plugins.addPlugin(plugin);
verify(plugin).setMonochrome(false);
}
use of io.cucumber.core.options.RuntimeOptions in project cucumber-jvm by cucumber.
the class PluginsTest method shouldSetNonConcurrentEventListener.
@Test
void shouldSetNonConcurrentEventListener() {
RuntimeOptions runtimeOptions = RuntimeOptions.defaultOptions();
Plugins plugins = new Plugins(pluginFactory, runtimeOptions);
EventListener plugin = mock(EventListener.class);
plugins.addPlugin(plugin);
plugins.setSerialEventBusOnEventListenerPlugins(rootEventPublisher);
verify(plugin, times(1)).setEventPublisher(eventPublisher.capture());
assertThat(eventPublisher.getValue().getClass(), is(equalTo(CanonicalOrderEventPublisher.class)));
}
use of io.cucumber.core.options.RuntimeOptions 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