KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > db > JbpmSessionDbTest


1 package org.jbpm.db;
2
3 public class JbpmSessionDbTest extends AbstractDbTestCase {
4
5   public void testCurrentSession() {
6     assertSame(jbpmSession, JbpmSession.getCurrentJbpmSession());
7   }
8
9   public void testCurrentSessionStack() {
10     assertSame(jbpmSession, JbpmSession.getCurrentJbpmSession());
11     
12     JbpmSession nestedSession = getJbpmSessionFactory().openJbpmSession();
13     assertSame(nestedSession, JbpmSession.getCurrentJbpmSession());
14     nestedSession.close();
15     
16     assertSame(jbpmSession, JbpmSession.getCurrentJbpmSession());
17   }
18 }
19
Popular Tags