[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/collection ...
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/collection
CachedMapImplTest.java CachedListImplTest.java
ReplicatedSyncListTest.java
ReplicatedSyncSetTest.java
ReplicatedSyncMapTest.java
Log:
JBCACHE-840 (work in progress)
Revision Changes Path
1.2 +4 -3 JBossCache/tests-50/functional/org/jboss/cache/pojo/collection/CachedMapImplTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CachedMapImplTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/collection/CachedMapImplTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- CachedMapImplTest.java 9 Nov 2006 16:54:33 -0000 1.1
+++ CachedMapImplTest.java 10 Jan 2007 16:44:14 -0000 1.2
@@ -27,6 +27,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.Fqn;
@@ -57,11 +59,10 @@
{
super.setUp();
log.info("setUp() ....");
- String configFile = "META-INF/replSync-service.xml";
boolean toStart = true;
- cache_ = PojoCacheFactory.createCache(configFile, toStart);
+ cache_ = PojoCacheFactory.createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), toStart);
- cache1_ = PojoCacheFactory.createCache(configFile, toStart);
+ cache1_ = PojoCacheFactory.createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), toStart);
}
protected void tearDown() throws Exception
1.6 +4 -3 JBossCache/tests-50/functional/org/jboss/cache/pojo/collection/CachedListImplTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CachedListImplTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/collection/CachedListImplTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- CachedListImplTest.java 9 Nov 2006 16:54:33 -0000 1.5
+++ CachedListImplTest.java 10 Jan 2007 16:44:14 -0000 1.6
@@ -5,6 +5,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.Fqn;
@@ -33,11 +35,10 @@
{
super.setUp();
log.info("setUp() ....");
- String configFile = "META-INF/replSync-service.xml";
boolean toStart = true;
- cache_ = PojoCacheFactory.createCache(configFile, toStart);
+ cache_ = PojoCacheFactory.createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), toStart);
- cache1_ = PojoCacheFactory.createCache(configFile, toStart);
+ cache1_ = PojoCacheFactory.createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), toStart);
}
protected void tearDown() throws Exception
1.7 +3 -2 JBossCache/tests-50/functional/org/jboss/cache/pojo/collection/ReplicatedSyncListTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ReplicatedSyncListTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/collection/ReplicatedSyncListTest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- ReplicatedSyncListTest.java 9 Nov 2006 16:54:33 -0000 1.6
+++ ReplicatedSyncListTest.java 10 Jan 2007 16:44:14 -0000 1.7
@@ -5,6 +5,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.Address;
@@ -51,9 +53,8 @@
private PojoCache createCache(String name) throws Exception
{
- String configFile = "META-INF/replSync-service.xml";
boolean toStart = false;
- PojoCache cache = PojoCacheFactory.createCache(configFile, toStart);
+ PojoCache cache = PojoCacheFactory.createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), toStart);
cache.start();
return cache;
}
1.7 +3 -2 JBossCache/tests-50/functional/org/jboss/cache/pojo/collection/ReplicatedSyncSetTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ReplicatedSyncSetTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/collection/ReplicatedSyncSetTest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- ReplicatedSyncSetTest.java 9 Nov 2006 16:54:33 -0000 1.6
+++ ReplicatedSyncSetTest.java 10 Jan 2007 16:44:14 -0000 1.7
@@ -5,6 +5,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.Address;
@@ -50,9 +52,8 @@
private PojoCache createCache(String name) throws Exception
{
- String configFile = "META-INF/replSync-service.xml";
boolean toStart = false;
- PojoCache cache = PojoCacheFactory.createCache(configFile, toStart);
+ PojoCache cache = PojoCacheFactory.createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), toStart);
cache.start();
return cache;
}
1.10 +3 -2 JBossCache/tests-50/functional/org/jboss/cache/pojo/collection/ReplicatedSyncMapTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ReplicatedSyncMapTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/collection/ReplicatedSyncMapTest.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- ReplicatedSyncMapTest.java 3 Jan 2007 15:58:05 -0000 1.9
+++ ReplicatedSyncMapTest.java 10 Jan 2007 16:44:14 -0000 1.10
@@ -5,6 +5,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.PojoCacheException;
@@ -55,9 +57,8 @@
private PojoCache createCache(String name) throws Exception
{
- String configFile = "META-INF/replSync-service.xml";
boolean toStart = false;
- PojoCache cache = PojoCacheFactory.createCache(configFile, toStart);
+ PojoCache cache = PojoCacheFactory.createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), toStart);
cache.start();
return cache;
}
More information about the jboss-cvs-commits
mailing list