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