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 16 17 public class CachedListTxTest extends TestCase 18 { 19 Log log = LogFactory.getLog(CachedListTxTest.class); 20 PojoCache cache_; 21 22 23 public CachedListTxTest(String name) 24 { 25 super(name); 26 } 27 28 protected void setUp() throws Exception 29 { 30 super.setUp(); 31 log.info("setUp() ...."); 32 String 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 40 { 41 super.tearDown(); 42 cache_.stop(); 43 } 44 45 public void testDummy() 46 { 47 } 49 50 public static Test suite() throws Exception 51 { 52 return new TestSuite(CachedListTxTest.class); 53 } 54 55 public static void main(String [] args) throws Exception 56 { 57 junit.textui.TestRunner.run(suite()); 58 } 59 60 } 61 62 63 | Popular Tags |