Search in sources :

Example 1 with CachedProcessCompletedEvent

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);
}
Also used : TrackedEvent(org.jbpm.test.listener.IterableProcessEventListener.TrackedEvent) CachedProcessCompletedEvent(org.jbpm.test.listener.IterableProcessEventListener.CachedProcessCompletedEvent)

Aggregations

CachedProcessCompletedEvent (org.jbpm.test.listener.IterableProcessEventListener.CachedProcessCompletedEvent)1 TrackedEvent (org.jbpm.test.listener.IterableProcessEventListener.TrackedEvent)1