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);
}
Aggregations