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

Manik Surtani msurtani at jboss.com
Thu Jul 20 06:31:26 EDT 2006


  User: msurtani
  Date: 06/07/20 06:31:26

  Modified:    tests/functional/org/jboss/cache/eviction  
                        LRUPolicyTest.java ReplicatedLRUPolicyTest.java
  Log:
  Fixed some broken UTs to use the new xml parsers, cache factories, etc.
  
  Revision  Changes    Path
  1.11      +4 -4      JBossCache/tests/functional/org/jboss/cache/eviction/LRUPolicyTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: LRUPolicyTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/eviction/LRUPolicyTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- LRUPolicyTest.java	8 Jun 2006 17:37:39 -0000	1.10
  +++ LRUPolicyTest.java	20 Jul 2006 10:31:26 -0000	1.11
  @@ -14,7 +14,7 @@
    *
    * @author Ben Wang, Feb 11, 2004
    * @author Daniel Huang - dhuang at jboss.org
  - * @version $Revision: 1.10 $
  + * @version $Revision: 1.11 $
    */
   public class LRUPolicyTest extends TestCase
   {
  @@ -48,8 +48,8 @@
         cache_ = new TreeCache();
         PropertyConfigurator config = new PropertyConfigurator();
         config.configure(cache_, "META-INF/local-lru-eviction-service.xml"); // read in generic local xml
  -      cache_.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  -      cache_.setIsolationLevel(IsolationLevel.SERIALIZABLE);
  +      cache_.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  +      cache_.getConfiguration().setIsolationLevel(IsolationLevel.SERIALIZABLE);
         cache_.startService();
      }
   
  @@ -265,7 +265,7 @@
   
      public void testConcurrentPutAndEvict() throws Exception
      {
  -      cache_.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
  +      cache_.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
         cache_.put(ROOT_STR + "/concurrentPutAndEvict", "value", new Integer(1));
   
         for (int i = 0; i < 10; i++)
  
  
  
  1.9       +4 -4      JBossCache/tests/functional/org/jboss/cache/eviction/ReplicatedLRUPolicyTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ReplicatedLRUPolicyTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/eviction/ReplicatedLRUPolicyTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- ReplicatedLRUPolicyTest.java	18 Jul 2006 10:50:46 -0000	1.8
  +++ ReplicatedLRUPolicyTest.java	20 Jul 2006 10:31:26 -0000	1.9
  @@ -29,7 +29,7 @@
         initCaches(cache_);
   //      cache1_ = new TreeCache();
   //      initCaches(cache1_);
  -      cache_.setUseMarshalling(true);
  +      cache_.getConfiguration().setUseRegionBasedMarshalling(true);
         cache_.addTreeCacheListener(listener_);
         listener_.resetCounter();
   
  @@ -39,8 +39,8 @@
         cache2_ = new TreeCache();
         PropertyConfigurator config = new PropertyConfigurator();
         config.configure(cache2_, "META-INF/replSync-service.xml"); // read in generic local xml
  -      cache2_.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  -      cache2_.setUseMarshalling(true);
  +      cache2_.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  +      cache2_.getConfiguration().setUseRegionBasedMarshalling(true);
         cache2_.startService();
   
         wakeupIntervalMillis_ = cache_.getEvictionThreadWakeupIntervalSeconds() *1000;
  @@ -53,7 +53,7 @@
      {
         PropertyConfigurator config = new PropertyConfigurator();
         config.configure(cache, "META-INF/replSync-eviction-service.xml"); // read in generic local xml
  -      cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  +      cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
      }
   
      public void tearDown() throws Exception
  
  
  



More information about the jboss-cvs-commits mailing list