@Test public void addPlugin() throws Exception { CompositeProcessEnginePlugin composite = new CompositeProcessEnginePlugin(PLUGIN_A); assertThat(composite.getPlugins().size(), is(1)); assertThat(composite.getPlugins().get(0), is(PLUGIN_A)); composite.addProcessEnginePlugin(PLUGIN_B); assertThat(composite.getPlugins().size(), is(2)); assertThat(composite.getPlugins().get(1), is(PLUGIN_B)); }
@Test public void addPlugins() throws Exception { CompositeProcessEnginePlugin composite = new CompositeProcessEnginePlugin(PLUGIN_A); composite.addProcessEnginePlugins(Arrays.asList(PLUGIN_B)); assertThat(composite.getPlugins().size(), is(2)); assertThat(composite.getPlugins().get(0), is(PLUGIN_A)); assertThat(composite.getPlugins().get(1), is(PLUGIN_B)); }
@Test public void addPlugin() throws Exception { CompositeProcessEnginePlugin composite = new CompositeProcessEnginePlugin(PLUGIN_A); assertThat(composite.getPlugins().size(), is(1)); assertThat(composite.getPlugins().get(0), is(PLUGIN_A)); composite.addProcessEnginePlugin(PLUGIN_B); assertThat(composite.getPlugins().size(), is(2)); assertThat(composite.getPlugins().get(1), is(PLUGIN_B)); }
@Test public void addPlugins() throws Exception { CompositeProcessEnginePlugin composite = new CompositeProcessEnginePlugin(PLUGIN_A); composite.addProcessEnginePlugins(Arrays.asList(PLUGIN_B)); assertThat(composite.getPlugins().size(), is(2)); assertThat(composite.getPlugins().get(0), is(PLUGIN_A)); assertThat(composite.getPlugins().get(1), is(PLUGIN_B)); }