KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jbpm.graph.node;
2
3 import junit.framework.*;
4
5 import org.jbpm.graph.node.TaskNode;
6 import org.jbpm.taskmgmt.def.*;
7
8 public class TaskNodeTest extends TestCase {
9   
10   private TaskNode taskNode = new TaskNode();
11   private Task laundry = new Task("laundry");
12   private Task dishes = new Task("dishes");
13
14   public void testAddTask() {
15     taskNode.addTask(laundry);
16     taskNode.addTask(dishes);
17     assertEquals(2,taskNode.getTasks().size());
18   }
19 }
20
Popular Tags