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

Manik Surtani msurtani at jboss.com
Fri Feb 9 07:52:42 EST 2007


  User: msurtani
  Date: 07/02/09 07:52:42

  Modified:    tests/functional/org/jboss/cache/pojo/collection 
                        CachedListImplTest.java
  Log:
  Added jcip annotations
  
  Revision  Changes    Path
  1.2       +10 -7     JBossCache/tests/functional/org/jboss/cache/pojo/collection/CachedListImplTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CachedListImplTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/pojo/collection/CachedListImplTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- CachedListImplTest.java	13 Jan 2007 15:55:00 -0000	1.1
  +++ CachedListImplTest.java	9 Feb 2007 12:52:42 -0000	1.2
  @@ -5,14 +5,14 @@
   import junit.framework.TestSuite;
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  +import org.jboss.cache.Fqn;
   import org.jboss.cache.config.Configuration.CacheMode;
   import org.jboss.cache.factories.UnitTestCacheFactory;
   import org.jboss.cache.pojo.PojoCache;
   import org.jboss.cache.pojo.PojoCacheFactory;
  -import org.jboss.cache.Fqn;
   
  -import java.util.List;
   import java.util.ArrayList;
  +import java.util.List;
   
   /**
    * List implementation testing.
  @@ -35,10 +35,13 @@
      {
         super.setUp();
         log.info("setUp() ....");
  -      boolean toStart = true;
  +      boolean toStart = false;
         cache_ = PojoCacheFactory.createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), toStart);
  -
  +      cache_.getCache().getConfiguration().setFetchInMemoryState(false);
         cache1_ = PojoCacheFactory.createCache(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC), toStart);
  +      cache1_.getCache().getConfiguration().setFetchInMemoryState(false);
  +      cache_.start();
  +      cache1_.start();
      }
   
      protected void tearDown() throws Exception
  @@ -57,13 +60,13 @@
         cache_.attach("list", list);
   
         // proxy now
  -      list = (List)cache_.find("list");
  +      list = (List) cache_.find("list");
   
         // test repl
         cache_.getCache().put(Fqn.fromString("test"), "1", list);
   
  -      ArrayList l1 = (ArrayList)cache1_.getCache().get(Fqn.fromString("test"), "1");
  -      System.out.println(" list : " +l1);
  +      ArrayList l1 = (ArrayList) cache1_.getCache().get(Fqn.fromString("test"), "1");
  +      System.out.println(" list : " + l1);
      }
   
      public static Test suite() throws Exception
  
  
  



More information about the jboss-cvs-commits mailing list