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

Manik Surtani msurtani at jboss.com
Thu Nov 16 13:15:27 EST 2006


  User: msurtani
  Date: 06/11/16 13:15:27

  Modified:    tests/functional/org/jboss/cache/eviction 
                        LRUPolicyTest.java
  Log:
  some eviction stuff
  
  Revision  Changes    Path
  1.19      +5 -2      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.18
  retrieving revision 1.19
  diff -u -b -r1.18 -r1.19
  --- LRUPolicyTest.java	15 Nov 2006 17:01:24 -0000	1.18
  +++ LRUPolicyTest.java	16 Nov 2006 18:15:27 -0000	1.19
  @@ -14,7 +14,7 @@
    *
    * @author Ben Wang, Feb 11, 2004
    * @author Daniel Huang - dhuang at jboss.org
  - * @version $Revision: 1.18 $
  + * @version $Revision: 1.19 $
    */
   public class LRUPolicyTest extends TestCase
   {
  @@ -73,7 +73,8 @@
         }
   
         TestingUtil.sleepThread(wakeupIntervalMillis_ + 500);
  -      cache_.getRegionManager().getRegion(Fqn.fromString(rootStr + 5), true).markNodeCurrentlyInUse(Fqn.fromString(rootStr + 5), 0);
  +      System.out.println("***************************** marking as in-use");
  +      cache_.getRegionManager().getRegion(Fqn.fromString(rootStr + 5), false).markNodeCurrentlyInUse(Fqn.fromString(rootStr + 5), 0);
   
         for (int i = 10; i < 15; i++)
         {
  @@ -268,7 +269,9 @@
      public void testConcurrentPutAndEvict() throws Exception
      {
         cache_.stop();
  +      cache_.destroy();
         cache_.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
  +      cache_.create();
         cache_.start();
         cache_.put(ROOT_STR + "/concurrentPutAndEvict", "value", new Integer(1));
   
  
  
  



More information about the jboss-cvs-commits mailing list