[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/passivation ...
Ben Wang
bwang at jboss.com
Tue Oct 31 06:07:18 EST 2006
User: bwang
Date: 06/10/31 06:07:18
Modified: tests-50/functional/org/jboss/cache/pojo/passivation
LocalTest.java ReplicatedTest.java
Log:
Refactored to be consistent with Cache factory method name.
Revision Changes Path
1.7 +1 -1 JBossCache/tests-50/functional/org/jboss/cache/pojo/passivation/LocalTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LocalTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/passivation/LocalTest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- LocalTest.java 17 Sep 2006 04:30:41 -0000 1.6
+++ LocalTest.java 31 Oct 2006 11:07:18 -0000 1.7
@@ -45,7 +45,7 @@
log.info("setUp() ....");
String configFile = "META-INF/local-passivation-service.xml";
boolean toStart = false;
- cache_ = PojoCacheFactory.createInstance(configFile, toStart);
+ cache_ = PojoCacheFactory.createCache(configFile, toStart);
cache_.getCache().getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.BatchModeTransactionManagerLookup");
cache_.start();
1.5 +2 -4 JBossCache/tests-50/functional/org/jboss/cache/pojo/passivation/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/passivation/ReplicatedTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- ReplicatedTest.java 29 Sep 2006 02:16:11 -0000 1.4
+++ ReplicatedTest.java 31 Oct 2006 11:07:18 -0000 1.5
@@ -14,13 +14,11 @@
import org.apache.commons.logging.LogFactory;
import org.jboss.cache.pojo.*;
import org.jboss.cache.pojo.test.Person;
-import org.jboss.cache.pojo.test.Student;
import org.jboss.cache.Fqn;
import org.jboss.cache.AbstractCacheListener;
import org.jboss.cache.CacheListener;
import org.jboss.cache.CacheSPI;
-import java.util.List;
import java.util.Map;
/**
@@ -45,9 +43,9 @@
log.info("setUp() ....");
String configFile = "META-INF/replSync-passivation-service.xml";
boolean toStart = false;
- cache = PojoCacheFactory.createInstance(configFile, toStart);
+ cache = PojoCacheFactory.createCache(configFile, toStart);
cache.start();
- cache1 = PojoCacheFactory.createInstance(configFile, toStart);
+ cache1 = PojoCacheFactory.createCache(configFile, toStart);
cache1.start();
((CacheSPI)cache1.getCache()).getNotifier().addCacheListener(listener);
}
More information about the jboss-cvs-commits
mailing list