use of org.jbpm.test.listener.IterableProcessEventListener.CachedProcessStartedEvent in project jbpm by kiegroup.
the class IterableListenerAssert method assertProcessStarted.
/**
* Asserts that the process was started
*
* @param it listener that listened to the process
* @param processId id of the process
*/
public static void assertProcessStarted(IterableProcessEventListener it, String processId) {
TrackedEvent event = getEvent(it);
Assertions.assertThat(event.getMethod()).isEqualTo(BEFORE_STARTED);
CachedProcessStartedEvent orig = event.getEvent();
Assertions.assertThat(orig.getProcessId()).isEqualTo(processId);
}
Aggregations