KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > bpel > def > InvokeDbTest


1 package org.jbpm.bpel.def;
2
3 import org.jbpm.bpel.db.AbstractDbTestCase;
4
5 public class InvokeDbTest extends AbstractDbTestCase {
6   
7   public void testInvoker() {
8     BpelDefinition processDefinition = new BpelDefinition();
9     Invoke invoke = new Invoke("child");
10     processDefinition.addNode(invoke);
11     
12     processDefinition = saveAndReload(processDefinition);
13
14     invoke = (Invoke) processDefinition.getNode("child");
15     assertNotNull( invoke.getInvoker() );
16   }
17 }
18
Popular Tags