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

Manik Surtani msurtani at belmont.prod.atl2.jboss.com
Wed Aug 30 14:43:16 EDT 2006


  User: msurtani
  Date: 06/08/30 14:43:16

  Modified:    tests/functional/org/jboss/cache/eviction 
                        OptimisticEvictionTest.java
  Log:
  re-enabled commented out test
  
  Revision  Changes    Path
  1.7       +5 -13     JBossCache/tests/functional/org/jboss/cache/eviction/OptimisticEvictionTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: OptimisticEvictionTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/eviction/OptimisticEvictionTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- OptimisticEvictionTest.java	30 Aug 2006 18:39:42 -0000	1.6
  +++ OptimisticEvictionTest.java	30 Aug 2006 18:43:16 -0000	1.7
  @@ -1,7 +1,6 @@
   package org.jboss.cache.eviction;
   
   import junit.framework.TestCase;
  -import org.jboss.cache.CacheException;
   import org.jboss.cache.DummyTransactionManagerLookup;
   import org.jboss.cache.Fqn;
   import org.jboss.cache.TreeCache;
  @@ -25,7 +24,7 @@
   {
   
      //Maximum number of runs 2^20
  -   private static final int NUMBER_OF_RUNS = (1 << 20);
  +   private static final int NUMBER_OF_RUNS = 1 << 20;
      //Initial number of nodes
      private static final int NUMBER_NODES = 256;
   
  @@ -54,7 +53,7 @@
      }
   
   
  -   public void testEvictionError() throws CacheException
  +   public void testEvictionError() throws Exception
      {
         //Initialize the cache via a map
         for (int i = 0; i < NUMBER_NODES; i++)
  @@ -64,17 +63,10 @@
   
         for (int i = 0; i < NUMBER_OF_RUNS; i++)
         {
  -         try
  -         {
               txManager.begin();
               cache.get(region, i % NUMBER_NODES);
               txManager.commit();
            }
  -         catch (Exception e)
  -         {
  -            fail("Exception caught after run: " + i + ". Cause was " + e.getCause());
  -         }
  -      }
      }
   
   
  
  
  



More information about the jboss-cvs-commits mailing list