[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/eviction ...
Manik Surtani
msurtani at jboss.com
Tue Aug 8 10:29:23 EDT 2006
User: msurtani
Date: 06/08/08 10:29:23
Modified: tests/functional/org/jboss/cache/eviction Tag:
Branch_JBossCache_1_4_0 OptimisticEvictionTest.java
Log:
TRacing an eviction/opt locking bug
Revision Changes Path
No revision
No revision
1.1.2.5 +22 -0 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.1.2.4
retrieving revision 1.1.2.5
diff -u -b -r1.1.2.4 -r1.1.2.5
--- OptimisticEvictionTest.java 22 Jun 2006 10:39:39 -0000 1.1.2.4
+++ OptimisticEvictionTest.java 8 Aug 2006 14:29:23 -0000 1.1.2.5
@@ -87,6 +87,28 @@
assertTrue(!cache.exists("/timeBased/test"));
}
+ public void testMultEvictionOccurences() throws Exception
+ {
+ for (int i=0; i<50; i++)
+ {
+ cache.put("/testingRegion/test/" + i, "key", "value");
+ }
+
+ /*
+
+ // If this loop is uncommented it works fine ....
+
+ for (int i=0; i<50; i++)
+ {
+ cache.get("/testingRegion/test" + i);
+ }
+ */
+
+ // wait for it to be evicted.
+ TestingUtil.sleepThread(1000);
+ assertEquals(12, cache.getNumberOfNodes()); // root + base + num nodes in region
+ }
+
public void testInterceptorChain() throws Exception
{
List interceptors = cache.getInterceptors();
More information about the jboss-cvs-commits
mailing list