[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/statetransfer ...
Vladmir Blagojevic
vladimir.blagojevic at jboss.com
Mon Apr 16 13:37:10 EDT 2007
User: vblagojevic
Date: 07/04/16 13:37:10
Modified: tests/functional/org/jboss/cache/statetransfer
StateTransferTestBase.java VersionedTestBase.java
FailedStateTransferTest.java
Log:
rename UnitTestCacheFactory to UnitTestCacheConfigurationFactory
Revision Changes Path
1.37 +2 -2 JBossCache/tests/functional/org/jboss/cache/statetransfer/StateTransferTestBase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: StateTransferTestBase.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/statetransfer/StateTransferTestBase.java,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- StateTransferTestBase.java 23 Mar 2007 17:37:29 -0000 1.36
+++ StateTransferTestBase.java 16 Apr 2007 17:37:10 -0000 1.37
@@ -28,7 +28,7 @@
import org.jboss.cache.Fqn;
import org.jboss.cache.config.Configuration;
import org.jboss.cache.config.Configuration.CacheMode;
-import org.jboss.cache.factories.UnitTestCacheFactory;
+import org.jboss.cache.factories.UnitTestCacheConfigurationFactory;
import org.jboss.cache.loader.AbstractCacheLoaderTestBase;
import org.jboss.cache.loader.CacheLoader;
import org.jboss.cache.marshall.SelectedClassnameClassLoader;
@@ -101,7 +101,7 @@
}
CacheMode mode = sync ? CacheMode.REPL_SYNC : CacheMode.REPL_ASYNC;
- Configuration c = UnitTestCacheFactory.createConfiguration(mode);
+ Configuration c = UnitTestCacheConfigurationFactory.createConfiguration(mode);
if (sync)
{
c.setSyncRollbackPhase(true);
1.33 +5 -5 JBossCache/tests/functional/org/jboss/cache/statetransfer/VersionedTestBase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: VersionedTestBase.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/statetransfer/VersionedTestBase.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -b -r1.32 -r1.33
--- VersionedTestBase.java 3 Apr 2007 18:12:48 -0000 1.32
+++ VersionedTestBase.java 16 Apr 2007 17:37:10 -0000 1.33
@@ -16,7 +16,7 @@
import org.jboss.cache.Region;
import org.jboss.cache.config.Configuration;
import org.jboss.cache.config.Configuration.CacheMode;
-import org.jboss.cache.factories.UnitTestCacheFactory;
+import org.jboss.cache.factories.UnitTestCacheConfigurationFactory;
import org.jboss.cache.loader.CacheLoader;
import org.jboss.cache.marshall.InactiveRegionException;
import org.jboss.cache.misc.TestingUtil;
@@ -773,14 +773,14 @@
public void testEvictionSeesStateTransfer() throws Exception
{
- Configuration c = UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC, true);
+ Configuration c = UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC, true);
Cache cache1 = DefaultCacheFactory.getInstance().createCache(c, false);
cache1.start();
caches.put("evict1", cache1);
cache1.put(Fqn.fromString("/a/b/c"), "key", "value");
- c = UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC, true);
+ c = UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC, true);
Cache cache2 = DefaultCacheFactory.getInstance().createCache(c, false);
cache2.start();
caches.put("evict2", cache2);
@@ -797,7 +797,7 @@
*/
public void testEvictionAfterStateTransfer() throws Exception
{
- Configuration c = UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC, true);
+ Configuration c = UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC, true);
Cache cache1 = DefaultCacheFactory.getInstance().createCache(c, false);
cache1.start();
caches.put("evict1", cache1);
@@ -811,7 +811,7 @@
}
}
- c = UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC, true);
+ c = UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC, true);
final Cache cache2 = DefaultCacheFactory.getInstance().createCache(c, false);
cache2.start();
caches.put("evict2", cache2);
1.11 +3 -3 JBossCache/tests/functional/org/jboss/cache/statetransfer/FailedStateTransferTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: FailedStateTransferTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/statetransfer/FailedStateTransferTest.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- FailedStateTransferTest.java 17 Jan 2007 01:31:08 -0000 1.10
+++ FailedStateTransferTest.java 16 Apr 2007 17:37:10 -0000 1.11
@@ -26,7 +26,7 @@
import org.jboss.cache.CacheImpl;
import org.jboss.cache.Version;
import org.jboss.cache.config.Configuration.CacheMode;
-import org.jboss.cache.factories.UnitTestCacheFactory;
+import org.jboss.cache.factories.UnitTestCacheConfigurationFactory;
import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.lock.TimeoutException;
@@ -44,7 +44,7 @@
public void testFailedStateTransfer() throws Exception
{
CacheImpl cache = new SecretiveStateCache();
- cache.setConfiguration(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_ASYNC));
+ cache.setConfiguration(UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_ASYNC));
cache.getConfiguration().setClusterName("VersionedTestBase");
cache.getConfiguration().setReplVersionString(getReplicationVersion());
// Use a long timeout to facilitate setting debugger breakpoints
@@ -59,7 +59,7 @@
CacheImpl recipient = new SecretiveStateCache();
- recipient.setConfiguration(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_ASYNC));
+ recipient.setConfiguration(UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_ASYNC));
recipient.getConfiguration().setClusterName("VersionedTestBase");
recipient.getConfiguration().setReplVersionString(getReplicationVersion());
// Use a long timeout to facilitate setting debugger breakpoints
More information about the jboss-cvs-commits
mailing list