You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-dev@jakarta.apache.org by as...@apache.org on 2004/07/08 02:50:20 UTC

cvs commit: jakarta-turbine-jcs/src/test/org/apache/jcs TestDiskCacheConcurrent.java

asmuts      2004/07/07 17:50:20

  Modified:    src/test/org/apache/jcs TestDiskCacheConcurrent.java
  Log:
  Berkeley DB JE unit test
  
  Revision  Changes    Path
  1.7       +21 -1     jakarta-turbine-jcs/src/test/org/apache/jcs/TestDiskCacheConcurrent.java
  
  Index: TestDiskCacheConcurrent.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-jcs/src/test/org/apache/jcs/TestDiskCacheConcurrent.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestDiskCacheConcurrent.java	15 Apr 2004 19:24:19 -0000	1.6
  +++ TestDiskCacheConcurrent.java	8 Jul 2004 00:50:20 -0000	1.7
  @@ -80,6 +80,23 @@
               }
           });
   
  +        suite.addTest( new TestDiskCacheConcurrent( "testIndexedDiskCache4" )
  +        {
  +            public void runTest() throws Exception
  +            {
  +                this.runTestForRegion( "indexedRegion4", 2200, 5200 );
  +            }
  +        });
  +
  +        suite.addTest( new TestDiskCacheConcurrent( "testIndexedDiskCache5" )
  +        {
  +            public void runTest() throws Exception
  +            {
  +                this.runTestForRegion( "indexedRegion4", 0, 5200 );
  +            }
  +        });
  +
  +
           return suite;
       }
   
  @@ -138,6 +155,7 @@
               this.assertEquals( region + " data " + i, value );
           }
   
  +/*// you can't remove in one thread and expect them to be in another
           // Remove all the items
   
           for ( int i = start; i <= end; i++ )
  @@ -152,5 +170,7 @@
               assertNull( "Removed key should be null: " + i + ":key",
                           jcs.get( i + ":key" ) );
           }
  +*/
  +
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-jcs-dev-help@jakarta.apache.org