KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > graph > node > EndStateDbTest


1 package org.jbpm.graph.node;
2
3 import org.jbpm.db.AbstractDbTestCase;
4 import org.jbpm.graph.def.ProcessDefinition;
5
6 public class EndStateDbTest extends AbstractDbTestCase {
7
8   public void testEndState() {
9     ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
10       "<process-definition>" +
11       " <end-state name='end' />" +
12       "</process-definition>");
13   
14     processDefinition = saveAndReload(processDefinition);
15   
16     EndState endState = (EndState) processDefinition.getNode("end");
17     assertEquals("end", endState.getName());
18   }
19
20 }
21
Popular Tags