@Test public void testOnProcessesUpdatedEvent() { ProcessDataEvent event = mock(ProcessDataEvent.class); when(event.getProcessIds()).thenReturn(new String[]{"p1", "p2"}); tested.onProcessesUpdatedEvent(event); verify(formsHandler, times(1)).refreshCurrentSessionForms(eq(BPMNDefinitionSet.class)); List<String> values = tested.getProcessIds(); assertNotNull(values); assertEquals(2, values.size()); assertTrue(values.contains("p1")); assertTrue(values.contains("p2")); }
void onProcessesUpdatedEvent(final @Observes ProcessDataEvent event) { setProcessIds(toList(event.getProcessIds())); }
ProcessesDataProvider { void onProcessesUpdatedEvent(final @Observes ProcessDataEvent event) { setProcessIds(toList(event.getProcessIds())); } }
ProcessesDataProvider { void onProcessesUpdatedEvent(final @Observes ProcessDataEvent event) { setProcessIds(toList(event.getProcessIds())); } ProcessesDataProvider(); @Inject  ProcessesDataProvider(final StunnerFormsHandler formsHandler); }
ProcessesDataProvider { void onProcessesUpdatedEvent(final @Observes ProcessDataEvent event) { setProcessIds(toList(event.getProcessIds())); } ProcessesDataProvider(); @Inject  ProcessesDataProvider(final StunnerFormsHandler formsHandler); List<String> getProcessIds(); }
ProcessesDataProvider { void onProcessesUpdatedEvent(final @Observes ProcessDataEvent event) { setProcessIds(toList(event.getProcessIds())); } ProcessesDataProvider(); @Inject  ProcessesDataProvider(final StunnerFormsHandler formsHandler); List<String> getProcessIds();  }