KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > graph > log > TokenLogsDbTest


1 package org.jbpm.graph.log;
2
3 import org.jbpm.db.AbstractDbTestCase;
4 import org.jbpm.graph.exe.Token;
5
6 public class TokenLogsDbTest extends AbstractDbTestCase {
7
8   public void testTokenCreateLog() {
9     Token child = new Token();
10     jbpmSession.getSession().save(child);
11     
12     TokenCreateLog tokenCreateLog = new TokenCreateLog(child);
13     tokenCreateLog = (TokenCreateLog) saveAndReload(tokenCreateLog);
14     assertNotNull(tokenCreateLog.getChild());
15   }
16
17   public void testTokenEndLog() {
18     Token child = new Token();
19     jbpmSession.getSession().save(child);
20     
21     TokenEndLog tokenEndLog = new TokenEndLog(child);
22     tokenEndLog = (TokenEndLog) saveAndReload(tokenEndLog);
23     assertNotNull(tokenEndLog.getChild());
24   }
25
26 }
27
Popular Tags