1
2 package net.sf.voruta;
3
4 import junit.framework.*;
5 import java.util.*;
6
7 /***
8 *
9 * @author baliuka
10 */
11 public class LazyTest extends TestCase {
12
13 public LazyTest(java.lang.String testName) {
14 super(testName);
15 }
16
17 public static Test suite() {
18
19 TestSuite suite = new TestSuite(LazyTest.class);
20 return suite;
21
22 }
23
24 public void test() {
25 Db.close();
26 Db.commit();
27 assertTrue( ThreadLocalConnection.getConnection(null) == null );
28 Db.rollback();
29 assertTrue( ThreadLocalConnection.getConnection(null) == null );
30 Db.close();
31 assertTrue( ThreadLocalConnection.getConnection(null) == null );
32
33 }
34
35
36
37
38 public static void main(java.lang.String[] args) throws Exception{
39
40 junit.textui.TestRunner.run(suite());
41
42 }
43
44
45 }
This page was automatically generated by Maven