[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/api ...
Ben Wang
bwang at jboss.com
Tue Oct 31 01:57:28 EST 2006
User: bwang
Date: 06/10/31 01:57:28
Modified: tests/functional/org/jboss/cache/api SyncReplTest.java
NodeMoveAPITest.java NodeAPITest.java
CacheAPITest.java SyncReplTxTest.java
NodeReplicatedMoveTest.java
Log:
Refactored the DefaultCacheFactory to use the static create methods.
Revision Changes Path
1.5 +2 -2 JBossCache/tests/functional/org/jboss/cache/api/SyncReplTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SyncReplTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/api/SyncReplTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- SyncReplTest.java 5 Sep 2006 11:03:26 -0000 1.4
+++ SyncReplTest.java 31 Oct 2006 06:57:27 -0000 1.5
@@ -32,8 +32,8 @@
{
System.out.println("*** In setUp()");
caches = new CacheSPI[2];
- caches[0] = (CacheSPI) new DefaultCacheFactory().createCache("META-INF/replSync-service.xml");
- caches[1] = (CacheSPI) new DefaultCacheFactory().createCache("META-INF/replSync-service.xml");
+ caches[0] = (CacheSPI) DefaultCacheFactory.createCache("META-INF/replSync-service.xml");
+ caches[1] = (CacheSPI) DefaultCacheFactory.createCache("META-INF/replSync-service.xml");
TestingUtil.blockUntilViewsReceived(caches, 5000);
System.out.println("*** Finished setUp()");
1.10 +1 -1 JBossCache/tests/functional/org/jboss/cache/api/NodeMoveAPITest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: NodeMoveAPITest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/api/NodeMoveAPITest.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- NodeMoveAPITest.java 25 Oct 2006 04:50:20 -0000 1.9
+++ NodeMoveAPITest.java 31 Oct 2006 06:57:28 -0000 1.10
@@ -36,7 +36,7 @@
protected void setUp() throws Exception
{
// start a single cache instance
- cache = (CacheSPI) new DefaultCacheFactory().createCache("META-INF/local-tx-service.xml", false);
+ cache = (CacheSPI) DefaultCacheFactory.createCache("META-INF/local-tx-service.xml", false);
cache.getConfiguration().setNodeLockingScheme(optimistic ? Configuration.NodeLockingScheme.OPTIMISTIC : Configuration.NodeLockingScheme.PESSIMISTIC);
cache.start();
rootNode = cache.getRoot();
1.4 +1 -1 JBossCache/tests/functional/org/jboss/cache/api/NodeAPITest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: NodeAPITest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/api/NodeAPITest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- NodeAPITest.java 16 Sep 2006 00:23:35 -0000 1.3
+++ NodeAPITest.java 31 Oct 2006 06:57:28 -0000 1.4
@@ -26,7 +26,7 @@
protected void setUp()
{
// start a single cache instance
- cache = (CacheSPI) new DefaultCacheFactory().createCache("META-INF/local-tx-service.xml");
+ cache = (CacheSPI) DefaultCacheFactory.createCache("META-INF/local-tx-service.xml");
rootNode = cache.getRoot();
tm = cache.getTransactionManager();
}
1.5 +1 -1 JBossCache/tests/functional/org/jboss/cache/api/CacheAPITest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheAPITest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/api/CacheAPITest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- CacheAPITest.java 10 Oct 2006 14:25:25 -0000 1.4
+++ CacheAPITest.java 31 Oct 2006 06:57:28 -0000 1.5
@@ -29,7 +29,7 @@
protected void setUp()
{
// start a single cache instance
- cache = new DefaultCacheFactory().createCache("META-INF/local-tx-service.xml");
+ cache = DefaultCacheFactory.createCache("META-INF/local-tx-service.xml");
}
protected void tearDown()
1.2 +2 -2 JBossCache/tests/functional/org/jboss/cache/api/SyncReplTxTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SyncReplTxTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/api/SyncReplTxTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- SyncReplTxTest.java 5 Sep 2006 06:50:42 -0000 1.1
+++ SyncReplTxTest.java 31 Oct 2006 06:57:28 -0000 1.2
@@ -39,8 +39,8 @@
{
System.out.println("*** In setUp()");
caches = new Cache[2];
- caches[0] = new DefaultCacheFactory().createCache("META-INF/replSync-service.xml");
- caches[1] = new DefaultCacheFactory().createCache("META-INF/replSync-service.xml");
+ caches[0] = DefaultCacheFactory.createCache("META-INF/replSync-service.xml");
+ caches[1] = DefaultCacheFactory.createCache("META-INF/replSync-service.xml");
TestingUtil.blockUntilViewsReceived(caches, 5000);
System.out.println("*** Finished setUp()");
1.4 +2 -2 JBossCache/tests/functional/org/jboss/cache/api/NodeReplicatedMoveTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: NodeReplicatedMoveTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/api/NodeReplicatedMoveTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- NodeReplicatedMoveTest.java 22 Sep 2006 16:26:28 -0000 1.3
+++ NodeReplicatedMoveTest.java 31 Oct 2006 06:57:28 -0000 1.4
@@ -31,14 +31,14 @@
cache = new CacheSPI[2];
// start a single cache instance
- cache[0] = (CacheSPI) new DefaultCacheFactory().createCache("META-INF/replSync-service.xml", false);
+ cache[0] = (CacheSPI) DefaultCacheFactory.createCache("META-INF/replSync-service.xml", false);
cache[0].getConfiguration().setNodeLockingScheme(optimistic ? Configuration.NodeLockingScheme.OPTIMISTIC : Configuration.NodeLockingScheme.PESSIMISTIC);
cache[0].start();
rootNode = cache[0].getRoot();
tm = cache[0].getTransactionManager();
// start second instance
- cache[1] = (CacheSPI) new DefaultCacheFactory().createCache("META-INF/replSync-service.xml", false);
+ cache[1] = (CacheSPI) DefaultCacheFactory.createCache("META-INF/replSync-service.xml", false);
cache[1].getConfiguration().setNodeLockingScheme(optimistic ? Configuration.NodeLockingScheme.OPTIMISTIC : Configuration.NodeLockingScheme.PESSIMISTIC);
cache[1].start();
}
More information about the jboss-cvs-commits
mailing list