[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/region ...
Vladmir Blagojevic
vladimir.blagojevic at jboss.com
Wed Jan 10 11:44:14 EST 2007
User: vblagojevic
Date: 07/01/10 11:44:14
Modified: tests-50/functional/org/jboss/cache/pojo/region
ReplicatedTest.java
Log:
JBCACHE-840 (work in progress)
Revision Changes Path
1.5 +4 -3 JBossCache/tests-50/functional/org/jboss/cache/pojo/region/ReplicatedTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ReplicatedTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/region/ReplicatedTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- ReplicatedTest.java 31 Oct 2006 11:07:18 -0000 1.4
+++ ReplicatedTest.java 10 Jan 2007 16:44:14 -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.*;
import org.jboss.cache.pojo.test.Person;
import org.jboss.cache.pojo.test.Student;
@@ -39,11 +41,10 @@
{
super.setUp();
log.info("setUp() ....");
- String configFile = "META-INF/replSync-service.xml";
boolean toStart = false;
- cache = PojoCacheFactory.createCache(configFile, toStart);
+ cache = PojoCacheFactory.createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), toStart);
cache.start();
- cache1 = PojoCacheFactory.createCache(configFile, toStart);
+ cache1 = PojoCacheFactory.createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), toStart);
cache1.start();
cache.getCache().getRegion(Fqn.fromString("SESSION"), true);
cache1.getCache().getRegion(Fqn.fromString("SESSION"), true);
More information about the jboss-cvs-commits
mailing list