1 7 8 package org.jboss.cache.pojo; 9 10 import junit.framework.Test; 11 import junit.framework.TestCase; 12 import junit.framework.TestSuite; 13 import org.apache.commons.logging.Log; 14 import org.apache.commons.logging.LogFactory; 15 16 import javax.naming.Context ; 17 import java.util.Properties ; 18 19 24 25 public class ReplicatedNonSerializableTest extends TestCase 26 { 27 Log log_ = LogFactory.getLog(ReplicatedNonSerializableTest.class); 28 PojoCache cache_; 29 PojoCache cache1_; 30 31 public ReplicatedNonSerializableTest(String name) 32 { 33 super(name); 34 } 35 36 protected void setUp() throws Exception 37 { 38 super.setUp(); 39 Properties prop = new Properties (); 40 prop.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.cache.transaction.DummyContextFactory"); 41 boolean toStart = false; 42 cache_ = PojoCacheFactory.createCache("META-INF/replSync-service.xml", toStart); 43 cache1_ = PojoCacheFactory.createCache("META-INF/replSync-service.xml", toStart); 44 cache_.start(); 45 cache1_.start(); 46 } 47 48 protected void tearDown() throws Exception 49 { 50 super.tearDown(); 51 cache_.stop(); 52 cache1_.stop(); 53 } 54 55 public void testDummy() 56 { 57 } 58 59 108 109 public static Test suite() throws Exception 110 { 111 return new TestSuite(ReplicatedNonSerializableTest.class); 112 } 113 114 115 public static void main(String [] args) throws Exception 116 { 117 junit.textui.TestRunner.run(ReplicatedNonSerializableTest.suite()); 118 } 119 120 } 121 | Popular Tags |