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

Manik Surtani msurtani at jboss.com
Thu Nov 16 13:41:25 EST 2006


  User: msurtani
  Date: 06/11/16 13:41:25

  Modified:    tests/functional/org/jboss/cache/eviction    
                        LFUPolicyTest.java MRUPolicyTest.java
                        ElementSizePolicyTest.java FIFOPolicyTest.java
  Log:
  proper cache destruction in destroy()
  
  Revision  Changes    Path
  1.8       +2 -1      JBossCache/tests/functional/org/jboss/cache/eviction/LFUPolicyTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: LFUPolicyTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/eviction/LFUPolicyTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- LFUPolicyTest.java	14 Nov 2006 14:17:10 -0000	1.7
  +++ LFUPolicyTest.java	16 Nov 2006 18:41:25 -0000	1.8
  @@ -18,7 +18,7 @@
    * Unit tests for LFU Policy.
    *
    * @author Daniel Huang (dhuang at jboss.org)
  - * @version $Revision: 1.7 $
  + * @version $Revision: 1.8 $
    */
   public class LFUPolicyTest extends TestCase
   {
  @@ -311,6 +311,7 @@
      public void testConcurrentPutAndEvict() throws Exception
      {
         cache.stop();
  +      cache.destroy();
         cache.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
         cache.start();
         cache.put(ROOT_STR + "/concurrentPutAndEvict", "value", new Integer(1));
  
  
  
  1.10      +2 -1      JBossCache/tests/functional/org/jboss/cache/eviction/MRUPolicyTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: MRUPolicyTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/eviction/MRUPolicyTest.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- MRUPolicyTest.java	14 Nov 2006 14:17:10 -0000	1.9
  +++ MRUPolicyTest.java	16 Nov 2006 18:41:25 -0000	1.10
  @@ -16,7 +16,7 @@
    * Unit tests for MRUPolicy.
    *
    * @author Daniel Huang (dhuang at jboss.org)
  - * @version $Revision: 1.9 $
  + * @version $Revision: 1.10 $
    */
   public class MRUPolicyTest extends TestCase
   {
  @@ -140,6 +140,7 @@
      public void testConcurrentPutAndEvict() throws Exception
      {
         cache.stop();
  +      cache.destroy();
         cache.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
         cache.start();
         cache.put(ROOT_STR + "/concurrentPutAndEvict", "value", new Integer(1));
  
  
  
  1.8       +2 -0      JBossCache/tests/functional/org/jboss/cache/eviction/ElementSizePolicyTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ElementSizePolicyTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/eviction/ElementSizePolicyTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- ElementSizePolicyTest.java	15 Nov 2006 17:01:25 -0000	1.7
  +++ ElementSizePolicyTest.java	16 Nov 2006 18:41:25 -0000	1.8
  @@ -192,7 +192,9 @@
      public void testConcurrentPutAndEvict() throws Exception
      {
         cache.stop();
  +      cache.destroy();
         cache.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
  +
         cache.start();
         cache.put(ROOT_STR + "/concurrentPutAndEvict", "value", new Integer(1));
   
  
  
  
  1.9       +2 -1      JBossCache/tests/functional/org/jboss/cache/eviction/FIFOPolicyTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FIFOPolicyTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/eviction/FIFOPolicyTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- FIFOPolicyTest.java	14 Nov 2006 14:17:10 -0000	1.8
  +++ FIFOPolicyTest.java	16 Nov 2006 18:41:25 -0000	1.9
  @@ -17,7 +17,7 @@
    * Unit tests for FIFOPolicy.
    *
    * @author Daniel Huang (dhuang at jboss.org)
  - * @version $Revision: 1.8 $
  + * @version $Revision: 1.9 $
    */
   public class FIFOPolicyTest extends TestCase
   {
  @@ -302,6 +302,7 @@
      public void testConcurrentPutAndEvict() throws Exception
      {
         cache.stop();
  +      cache.destroy();
         cache.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
         cache.start();
         cache.put(ROOT_STR + "/concurrentPutAndEvict", "value", new Integer(1));
  
  
  



More information about the jboss-cvs-commits mailing list