[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/eviction ...
Manik Surtani
msurtani at jboss.com
Fri Sep 15 11:11:35 EDT 2006
User: msurtani
Date: 06/09/15 11:11:35
Modified: tests/functional/org/jboss/cache/eviction
ElementSizePolicyTest.java FIFOPolicyTest.java
LFUPolicyTest.java LRUPolicyTest.java
MRUPolicyTest.java
Log:
- better exception message when changing an immutable config element at runtime
- updated tests that change certain elements dynamically.
Revision Changes Path
1.5 +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.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- ElementSizePolicyTest.java 6 Sep 2006 15:30:57 -0000 1.4
+++ ElementSizePolicyTest.java 15 Sep 2006 15:11:35 -0000 1.5
@@ -188,7 +188,9 @@
public void testConcurrentPutAndEvict() throws Exception
{
+ cache.stop();
cache.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
+ cache.start();
cache.put(ROOT_STR + "/concurrentPutAndEvict", "value", new Integer(1));
for (int i = 0; i < 10; i++)
1.7 +3 -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.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- FIFOPolicyTest.java 6 Sep 2006 15:30:57 -0000 1.6
+++ FIFOPolicyTest.java 15 Sep 2006 15:11:35 -0000 1.7
@@ -17,7 +17,7 @@
* Unit tests for FIFOPolicy.
*
* @author Daniel Huang (dhuang at jboss.org)
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
*/
public class FIFOPolicyTest extends TestCase
{
@@ -301,7 +301,9 @@
public void testConcurrentPutAndEvict() throws Exception
{
+ cache.stop();
cache.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
+ cache.start();
cache.put(ROOT_STR + "/concurrentPutAndEvict", "value", new Integer(1));
for (int i = 0; i < 10; i++)
1.6 +3 -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.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- LFUPolicyTest.java 6 Sep 2006 15:30:57 -0000 1.5
+++ LFUPolicyTest.java 15 Sep 2006 15:11:35 -0000 1.6
@@ -18,7 +18,7 @@
* Unit tests for LFU Policy.
*
* @author Daniel Huang (dhuang at jboss.org)
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*/
public class LFUPolicyTest extends TestCase
{
@@ -310,7 +310,9 @@
public void testConcurrentPutAndEvict() throws Exception
{
+ cache.stop();
cache.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
+ cache.start();
cache.put(ROOT_STR + "/concurrentPutAndEvict", "value", new Integer(1));
for (int i = 0; i < 10; i++)
1.14 +3 -1 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.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- LRUPolicyTest.java 6 Sep 2006 15:30:57 -0000 1.13
+++ LRUPolicyTest.java 15 Sep 2006 15:11:35 -0000 1.14
@@ -14,7 +14,7 @@
*
* @author Ben Wang, Feb 11, 2004
* @author Daniel Huang - dhuang at jboss.org
- * @version $Revision: 1.13 $
+ * @version $Revision: 1.14 $
*/
public class LRUPolicyTest extends TestCase
{
@@ -264,7 +264,9 @@
public void testConcurrentPutAndEvict() throws Exception
{
+ cache_.stop();
cache_.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
+ cache_.start();
cache_.put(ROOT_STR + "/concurrentPutAndEvict", "value", new Integer(1));
for (int i = 0; i < 10; i++)
1.8 +3 -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.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- MRUPolicyTest.java 6 Sep 2006 15:30:57 -0000 1.7
+++ MRUPolicyTest.java 15 Sep 2006 15:11:35 -0000 1.8
@@ -16,7 +16,7 @@
* Unit tests for MRUPolicy.
*
* @author Daniel Huang (dhuang at jboss.org)
- * @version $Revision: 1.7 $
+ * @version $Revision: 1.8 $
*/
public class MRUPolicyTest extends TestCase
{
@@ -139,7 +139,9 @@
public void testConcurrentPutAndEvict() throws Exception
{
+ cache.stop();
cache.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
+ cache.start();
cache.put(ROOT_STR + "/concurrentPutAndEvict", "value", new Integer(1));
for (int i = 0; i < 10; i++)
More information about the jboss-cvs-commits
mailing list