[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/region ...
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/region
LocalTest.java NewLocalTest.java
ReplicatedTest.java LocalConcurrentTest.java
Log:
Refactored to be consistent with Cache factory method name.
Revision Changes Path
1.6 +1 -1 JBossCache/tests-50/functional/org/jboss/cache/pojo/region/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/region/LocalTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- LocalTest.java 10 Oct 2006 06:26:59 -0000 1.5
+++ LocalTest.java 31 Oct 2006 11:07:18 -0000 1.6
@@ -50,7 +50,7 @@
log.info("setUp() ....");
String configFile = "META-INF/local-service.xml";
boolean toStart = false;
- cache_ = PojoCacheFactory.createInstance(configFile, toStart);
+ cache_ = PojoCacheFactory.createCache(configFile, toStart);
cache_.start();
cache_.getCache().getRegion(Fqn.fromString(REGION), true);
cache_.getCache().getRegion(Fqn.fromString("RANDOM"), true);
1.5 +1 -1 JBossCache/tests-50/functional/org/jboss/cache/pojo/region/NewLocalTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: NewLocalTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/region/NewLocalTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- NewLocalTest.java 10 Oct 2006 06:26:59 -0000 1.4
+++ NewLocalTest.java 31 Oct 2006 11:07:18 -0000 1.5
@@ -40,7 +40,7 @@
log_.info("setUp() ....");
String configFile = "META-INF/local-service.xml";
boolean toStart = false;
- cache_ = PojoCacheFactory.createInstance(configFile, toStart);
+ cache_ = PojoCacheFactory.createCache(configFile, toStart);
cache_.start();
cache_.getCache().getRegion(Fqn.fromString("SESSION"), true);
}
1.4 +2 -2 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.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- ReplicatedTest.java 10 Oct 2006 06:26:59 -0000 1.3
+++ ReplicatedTest.java 31 Oct 2006 11:07:18 -0000 1.4
@@ -41,9 +41,9 @@
log.info("setUp() ....");
String configFile = "META-INF/replSync-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();
cache.getCache().getRegion(Fqn.fromString("SESSION"), true);
cache1.getCache().getRegion(Fqn.fromString("SESSION"), true);
1.4 +2 -2 JBossCache/tests-50/functional/org/jboss/cache/pojo/region/LocalConcurrentTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LocalConcurrentTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/region/LocalConcurrentTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- LocalConcurrentTest.java 10 Oct 2006 06:26:59 -0000 1.3
+++ LocalConcurrentTest.java 31 Oct 2006 11:07:18 -0000 1.4
@@ -28,7 +28,7 @@
* Local concurrent test for PojoCache. Test attach and detach under load
* and concurrency.
*
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
* @author<a href="mailto:bwang at jboss.org">Ben Wang</a> December 2004
*/
public class LocalConcurrentTest extends TestCase
@@ -88,7 +88,7 @@
void initCaches() throws Exception
{
boolean toStart = false;
- cache_ = PojoCacheFactory.createInstance("META-INF/local-service.xml", toStart);
+ cache_ = PojoCacheFactory.createCache("META-INF/local-service.xml", toStart);
cache_.start();
}
More information about the jboss-cvs-commits
mailing list