KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > pojo > collection > CachedListTxTest


1 package org.jboss.cache.pojo.collection;
2
3 import junit.framework.Test;
4 import junit.framework.TestCase;
5 import junit.framework.TestSuite;
6 import org.apache.commons.logging.Log;
7 import org.apache.commons.logging.LogFactory;
8 import org.jboss.cache.pojo.PojoCache;
9 import org.jboss.cache.pojo.PojoCacheFactory;
10
11 /**
12  * List interface testing with transaction control.
13  *
14  * @author Scott Marlow
15  */

16
17 public class CachedListTxTest extends TestCase
18 {
19    Log log = LogFactory.getLog(CachedListTxTest.class);
20    PojoCache cache_;
21
22
23    public CachedListTxTest(String JavaDoc name)
24    {
25       super(name);
26    }
27
28    protected void setUp() throws Exception JavaDoc
29    {
30       super.setUp();
31       log.info("setUp() ....");
32       String JavaDoc configFile = "META-INF/cache-config.xml";
33       boolean toStart = false;
34       cache_ = PojoCacheFactory.createCache(configFile, toStart);
35       cache_.start();
36
37    }
38
39    protected void tearDown() throws Exception JavaDoc
40    {
41       super.tearDown();
42       cache_.stop();
43    }
44
45    public void testDummy()
46    {
47       // No op now.
48
}
49
50    public static Test suite() throws Exception JavaDoc
51    {
52       return new TestSuite(CachedListTxTest.class);
53    }
54
55    public static void main(String JavaDoc[] args) throws Exception JavaDoc
56    {
57       junit.textui.TestRunner.run(suite());
58    }
59
60 }
61
62
63
Popular Tags