Ejemplo n.º 1
0
 public void assertNumOfOutgoingConnections(ProcessInstance process, String nodeName, int num) {
   assertNodeExists(process, nodeName);
   WorkflowProcessInstanceImpl instance = (WorkflowProcessInstanceImpl) process;
   for (Node node : instance.getNodeContainer().getNodes()) {
     if (node.getName().equals(nodeName)) {
       if (node.getOutgoingConnections().size() != num) {
         fail(
             "Expected outgoing connections: "
                 + num
                 + " - found "
                 + node.getOutgoingConnections().size());
       } else {
         break;
       }
     }
   }
 }