List transitionLogs = loggingInstance.getLogs(TransitionLog.class);
assertEquals(2, transitionLogs.size());
TransitionLog transitionLog = (TransitionLog) transitionLogs.get(1);
assertSame(token, transitionLog.getToken());
assertNotNull(transitionLog.getDate());
assertSame(processDefinition.findNode("superstate/state"), transitionLog.getSourceNode());
assertSame(processDefinition.getNode("end"), transitionLog.getDestinationNode());
}
public void testTransitionToSuperStateFirstChildLogs() {
ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(