Search in sources :

Example 1 with CachedProcessStartedEvent

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

Aggregations

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