[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/api ...

Vladmir Blagojevic vladimir.blagojevic at jboss.com
Mon Apr 16 13:37:11 EDT 2007


  User: vblagojevic
  Date: 07/04/16 13:37:11

  Modified:    tests/functional/org/jboss/cache/api     CacheSPITest.java
                        NodeReplicatedMoveTest.java SyncReplTest.java
                        SyncReplTxTest.java
  Log:
  rename UnitTestCacheFactory to UnitTestCacheConfigurationFactory
  
  Revision  Changes    Path
  1.10      +5 -5      JBossCache/tests/functional/org/jboss/cache/api/CacheSPITest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheSPITest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/api/CacheSPITest.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- CacheSPITest.java	11 Jan 2007 13:49:05 -0000	1.9
  +++ CacheSPITest.java	16 Apr 2007 17:37:11 -0000	1.10
  @@ -5,7 +5,7 @@
   import org.jboss.cache.DefaultCacheFactory;
   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.factories.XmlConfigurationParser;
   
   import java.util.List;
  @@ -21,9 +21,9 @@
      {
         super.setUp();
   
  -      Configuration conf1 = UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC);
  +      Configuration conf1 = UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC);
   
  -      Configuration conf2 = UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC);
  +      Configuration conf2 = UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC);
   
         conf1.setNodeLockingScheme(optimistic ? Configuration.NodeLockingScheme.OPTIMISTIC : Configuration.NodeLockingScheme.PESSIMISTIC);
         conf2.setNodeLockingScheme(optimistic ? Configuration.NodeLockingScheme.OPTIMISTIC : Configuration.NodeLockingScheme.PESSIMISTIC);
  @@ -79,9 +79,9 @@
      public void testIsCoordinator() throws Exception
      {
         XmlConfigurationParser parser = new XmlConfigurationParser();
  -      Configuration conf1 = UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC);
  +      Configuration conf1 = UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC);
   
  -      Configuration conf2 = UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC);
  +      Configuration conf2 = UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC);
   
         cache1 = (CacheSPI) DefaultCacheFactory.getInstance().createCache(conf1, false);
         cache2 = (CacheSPI) DefaultCacheFactory.getInstance().createCache(conf2, false);
  
  
  
  1.13      +3 -3      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.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- NodeReplicatedMoveTest.java	2 Mar 2007 12:37:23 -0000	1.12
  +++ NodeReplicatedMoveTest.java	16 Apr 2007 17:37:11 -0000	1.13
  @@ -13,7 +13,7 @@
   import org.jboss.cache.Node;
   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 javax.transaction.TransactionManager;
   
  @@ -33,7 +33,7 @@
         cache = new CacheSPI[2];
   
         // start a single cache instance      
  -      cache[0] = (CacheSPI) DefaultCacheFactory.getInstance().createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), false);
  +      cache[0] = (CacheSPI) DefaultCacheFactory.getInstance().createCache(UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC), false);
         cache[0].getConfiguration().setSyncCommitPhase(true);
         cache[0].getConfiguration().setSyncRollbackPhase(true);
         cache[0].getConfiguration().setNodeLockingScheme(optimistic ? Configuration.NodeLockingScheme.OPTIMISTIC : Configuration.NodeLockingScheme.PESSIMISTIC);
  @@ -42,7 +42,7 @@
         tm = cache[0].getTransactionManager();
   
         //  start second instance
  -      cache[1] = (CacheSPI) DefaultCacheFactory.getInstance().createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), false);
  +      cache[1] = (CacheSPI) DefaultCacheFactory.getInstance().createCache(UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC), false);
         cache[1].getConfiguration().setSyncCommitPhase(true);
         cache[1].getConfiguration().setSyncRollbackPhase(true);
         cache[1].getConfiguration().setNodeLockingScheme(optimistic ? Configuration.NodeLockingScheme.OPTIMISTIC : Configuration.NodeLockingScheme.PESSIMISTIC);
  
  
  
  1.12      +3 -3      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.11
  retrieving revision 1.12
  diff -u -b -r1.11 -r1.12
  --- SyncReplTest.java	19 Jan 2007 10:50:43 -0000	1.11
  +++ SyncReplTest.java	16 Apr 2007 17:37:11 -0000	1.12
  @@ -16,7 +16,7 @@
   import org.jboss.cache.Node;
   import org.jboss.cache.config.Configuration.CacheMode;
   import org.jboss.cache.config.Option;
  -import org.jboss.cache.factories.UnitTestCacheFactory;
  +import org.jboss.cache.factories.UnitTestCacheConfigurationFactory;
   import org.jboss.cache.misc.TestingUtil;
   
   import java.util.HashMap;
  @@ -33,8 +33,8 @@
      {
         System.out.println("*** In setUp()");
         caches = new CacheSPI[2];
  -      caches[0] = (CacheSPI) DefaultCacheFactory.getInstance().createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC));
  -      caches[1] = (CacheSPI) DefaultCacheFactory.getInstance().createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC));
  +      caches[0] = (CacheSPI) DefaultCacheFactory.getInstance().createCache(UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC));
  +      caches[1] = (CacheSPI) DefaultCacheFactory.getInstance().createCache(UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC));
   
         TestingUtil.blockUntilViewsReceived(caches, 5000);
         System.out.println("*** Finished setUp()");
  
  
  
  1.9       +3 -3      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.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- SyncReplTxTest.java	11 Jan 2007 13:49:05 -0000	1.8
  +++ SyncReplTxTest.java	16 Apr 2007 17:37:11 -0000	1.9
  @@ -16,7 +16,7 @@
   import org.jboss.cache.Node;
   import org.jboss.cache.config.Configuration.CacheMode;
   import org.jboss.cache.config.Option;
  -import org.jboss.cache.factories.UnitTestCacheFactory;
  +import org.jboss.cache.factories.UnitTestCacheConfigurationFactory;
   import org.jboss.cache.misc.TestingUtil;
   import org.jboss.cache.transaction.DummyTransactionManager;
   
  @@ -38,8 +38,8 @@
      {
         System.out.println("*** In setUp()");
         caches = new CacheSPI[2];
  -      caches[0] = (CacheSPI) DefaultCacheFactory.getInstance().createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC));
  -      caches[1] = (CacheSPI) DefaultCacheFactory.getInstance().createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC));
  +      caches[0] = (CacheSPI) DefaultCacheFactory.getInstance().createCache(UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC));
  +      caches[1] = (CacheSPI) DefaultCacheFactory.getInstance().createCache(UnitTestCacheConfigurationFactory.createConfiguration(CacheMode.REPL_SYNC));
   
         TestingUtil.blockUntilViewsReceived(caches, 5000);
         System.out.println("*** Finished setUp()");
  
  
  



More information about the jboss-cvs-commits mailing list