KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jbpm.bpel.def;
2
3 import org.jbpm.bpel.db.AbstractDbTestCase;
4 import org.jbpm.bpel.service.def.Replier;
5
6 public class ReplyDbTest extends AbstractDbTestCase {
7
8   public void testReplier() {
9     BpelDefinition processDefinition = new BpelDefinition();
10     Reply reply = new Reply("child");
11     Replier replier = new Replier();
12     reply.setReplier(replier);
13     
14     processDefinition.addNode(reply);
15     
16     processDefinition = saveAndReload(processDefinition);
17
18     reply = (Reply) processDefinition.getNode("child");
19     assertNotNull( reply.getReplier() );
20   }
21 }
22
Popular Tags