[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/rollback ...
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/rollback
ReplicatedTxTest.java
Log:
JBCACHE-840 (work in progress)
Revision Changes Path
1.4 +4 -3 JBossCache/tests-50/functional/org/jboss/cache/pojo/rollback/ReplicatedTxTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ReplicatedTxTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/rollback/ReplicatedTxTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- ReplicatedTxTest.java 31 Oct 2006 11:07:17 -0000 1.3
+++ ReplicatedTxTest.java 10 Jan 2007 16:44:14 -0000 1.4
@@ -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.transaction.DummyTransactionManager;
@@ -50,11 +52,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();
System.setProperty(Context.INITIAL_CONTEXT_FACTORY, FACTORY);
More information about the jboss-cvs-commits
mailing list