[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/annotation ...
Vladmir Blagojevic
vladimir.blagojevic at jboss.com
Wed Jan 10 11:44:15 EST 2007
User: vblagojevic
Date: 07/01/10 11:44:15
Modified: tests-50/functional/org/jboss/cache/pojo/annotation
ReplicatedAnnotationTest.java
Log:
JBCACHE-840 (work in progress)
Revision Changes Path
1.5 +5 -4 JBossCache/tests-50/functional/org/jboss/cache/pojo/annotation/ReplicatedAnnotationTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ReplicatedAnnotationTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/annotation/ReplicatedAnnotationTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- ReplicatedAnnotationTest.java 31 Oct 2006 11:07:18 -0000 1.4
+++ ReplicatedAnnotationTest.java 10 Jan 2007 16:44:15 -0000 1.5
@@ -12,6 +12,8 @@
import junit.framework.TestSuite;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.jboss.cache.config.Configuration.CacheMode;
+import org.jboss.cache.factories.UnitTestCacheFactory;
import org.jboss.cache.pojo.PojoCache;
import org.jboss.cache.pojo.PojoCacheFactory;
import org.jboss.cache.pojo.test.Gadget;
@@ -44,11 +46,10 @@
super.setUp();
Properties prop = new Properties();
prop.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.cache.transaction.DummyContextFactory");
- String configStr = "META-INF/replSync-service.xml";
boolean toStart = false;
- cache_ = PojoCacheFactory.createCache(configStr, toStart);
+ cache_ = PojoCacheFactory.createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), toStart);
- cache1_ = PojoCacheFactory.createCache(configStr, toStart);
+ cache1_ = PojoCacheFactory.createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), toStart);
cache_.start();
cache1_.start();
}
More information about the jboss-cvs-commits
mailing list