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