[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer ...

Ben Wang bwang at jboss.com
Tue Oct 31 06:07:19 EST 2006


  User: bwang   
  Date: 06/10/31 06:07:19

  Modified:    tests-50/functional/org/jboss/cache/pojo/statetransfer  
                        ReplicatedTest.java StateTransferAopTestBase.java
  Log:
  Refactored to be consistent with Cache factory method name.
  
  Revision  Changes    Path
  1.2       +2 -4      JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer/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/statetransfer/ReplicatedTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- ReplicatedTest.java	10 Oct 2006 13:35:47 -0000	1.1
  +++ ReplicatedTest.java	31 Oct 2006 11:07:18 -0000	1.2
  @@ -32,8 +32,6 @@
   import org.jboss.cache.pojo.test.Person;
   import org.jboss.cache.pojo.test.Student;
   
  -import java.util.List;
  -
   /**
    * Simple replicated test for state transfer
    * @author Ben Wang
  @@ -87,12 +85,12 @@
      {
         String configFile = "META-INF/replSync-service.xml";
         boolean toStart = true;
  -      cache = PojoCacheFactory.createInstance(configFile, toStart);
  +      cache = PojoCacheFactory.createCache(configFile, toStart);
         Person ben = createPerson("/person/test1", "Ben Wang", 40);
   
         System.out.println("\n*** I ***");
         System.out.println(((org.jboss.cache.TreeCacheProxyImpl)cache.getCache()).printDetails());
  -      cache1 = PojoCacheFactory.createInstance(configFile, toStart);
  +      cache1 = PojoCacheFactory.createCache(configFile, toStart);
         cache1.start();
   
         System.out.println("\n*** II ***");
  
  
  
  1.5       +2 -3      JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer/StateTransferAopTestBase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: StateTransferAopTestBase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/statetransfer/StateTransferAopTestBase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- StateTransferAopTestBase.java	25 Oct 2006 04:51:38 -0000	1.4
  +++ StateTransferAopTestBase.java	31 Oct 2006 11:07:18 -0000	1.5
  @@ -13,7 +13,6 @@
   import org.apache.commons.logging.LogFactory;
   import org.jboss.cache.CacheException;
   import org.jboss.cache.Fqn;
  -import org.jboss.cache.TreeCache;
   import org.jboss.cache.Cache;
   import org.jboss.cache.CacheSPI;
   import org.jboss.cache.pojo.PojoCache;
  @@ -40,7 +39,7 @@
    * Tests state transfer in PojoCache.
    *
    * @author <a href="mailto://brian.stansberry@jboss.com">Brian Stansberry</a>
  - * @version $Revision: 1.4 $
  + * @version $Revision: 1.5 $
    */
   public abstract class StateTransferAopTestBase extends TestCase
   {
  @@ -647,7 +646,7 @@
            configureCacheLoader(c, cacheID);
         }
   
  -      PojoCache cache = PojoCacheFactory.createInstance(c, true);
  +      PojoCache cache = PojoCacheFactory.createCache(c, true);
         // Put the cache in the map before starting, so if it fails in
         // start it can still be destroyed later
         caches.put(cacheID, cache);
  
  
  



More information about the jboss-cvs-commits mailing list