[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/eviction ...
Manik Surtani
msurtani at jboss.com
Wed Nov 15 10:48:25 EST 2006
User: msurtani
Date: 06/11/15 10:48:25
Modified: tests/functional/org/jboss/cache/eviction
FIFOConfigurationTest.java
MRUConfigurationTest.java
ProgrammaticLRUPolicyTest.java
Log:
Fixed failures to reset configs properly
Revision Changes Path
1.7 +1 -2 JBossCache/tests/functional/org/jboss/cache/eviction/FIFOConfigurationTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: FIFOConfigurationTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/eviction/FIFOConfigurationTest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- FIFOConfigurationTest.java 27 Oct 2006 19:26:06 -0000 1.6
+++ FIFOConfigurationTest.java 15 Nov 2006 15:48:25 -0000 1.7
@@ -16,7 +16,7 @@
* Unit test for FIFOConfiguration.
*
* @author Daniel Huang (dhuang at jboss.org)
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
*/
public class FIFOConfigurationTest extends TestCase
{
@@ -72,7 +72,6 @@
catch (ConfigurationException ce)
{
assertTrue("Configure Exception properly thrown", true);
- return;
}
}
}
1.5 +2 -2 JBossCache/tests/functional/org/jboss/cache/eviction/MRUConfigurationTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: MRUConfigurationTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/eviction/MRUConfigurationTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- MRUConfigurationTest.java 27 Oct 2006 19:26:06 -0000 1.4
+++ MRUConfigurationTest.java 15 Nov 2006 15:48:25 -0000 1.5
@@ -16,7 +16,7 @@
* Unit tests for MRUConfiguration.
*
* @author Daniel Huang (dhuang at jboss.org)
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public class MRUConfigurationTest extends TestCase
{
@@ -72,7 +72,7 @@
{
caught = true;
}
- assertTrue("Configure exception should have been caught", caught);
+ assertTrue("Configure exception should have been caught, maxNodes is required", caught);
xml = "<region name=\"/Test/\">\n" +
"<attribute name=\"maxNodes\">10000</attribute>\n" +
1.7 +2 -2 JBossCache/tests/functional/org/jboss/cache/eviction/ProgrammaticLRUPolicyTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ProgrammaticLRUPolicyTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/eviction/ProgrammaticLRUPolicyTest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- ProgrammaticLRUPolicyTest.java 15 Nov 2006 15:16:39 -0000 1.6
+++ ProgrammaticLRUPolicyTest.java 15 Nov 2006 15:48:25 -0000 1.7
@@ -40,7 +40,7 @@
* Unit tests for programmatic configuration of LRU policy
*
* @author Ben Wang, Oct, 2006
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
*/
public class ProgrammaticLRUPolicyTest extends TestCase
{
@@ -228,7 +228,7 @@
{
Integer in = new Integer(3);
Fqn fqn = new Fqn(rootfqn, in);
- String val = (String) cache_.get(fqn, in);
+ Object val = cache_.get(fqn, in);
assertNull("DataNode should be empty ", val);
}
catch (Exception e)
More information about the jboss-cvs-commits
mailing list