Search in sources :

Example 1 with CachedProcessNodeLeftEvent

use of org.jbpm.test.listener.IterableProcessEventListener.CachedProcessNodeLeftEvent in project jbpm by kiegroup.

the class IterableListenerAssert method assertLeft.

/**
 * Asserts that the node with the given name was left
 *
 * @param it       listener that listened to the process
 * @param nodeName name of the node that is expected to be left
 */
public static void assertLeft(IterableProcessEventListener it, String nodeName) {
    TrackedEvent event = getEvent(it);
    Assertions.assertThat(event.getMethod()).isEqualTo(BEFORE_LEFT);
    CachedProcessNodeLeftEvent orig = event.getEvent();
    Assertions.assertThat(orig.getNodeName()).isEqualTo(nodeName);
}
Also used : TrackedEvent(org.jbpm.test.listener.IterableProcessEventListener.TrackedEvent) CachedProcessNodeLeftEvent(org.jbpm.test.listener.IterableProcessEventListener.CachedProcessNodeLeftEvent)

Aggregations

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