diff --git a/src/test/org/apache/commons/lang/functor/TestExecutorUtils.java b/src/test/org/apache/commons/lang/functor/TestExecutorUtils.java
index e1839f7bb..c8159a191 100644
--- a/src/test/org/apache/commons/lang/functor/TestExecutorUtils.java
+++ b/src/test/org/apache/commons/lang/functor/TestExecutorUtils.java
@@ -68,10 +68,13 @@ import org.apache.commons.lang.functor.PredicateUtils;
* Tests the org.apache.commons.lang.functor.ExecutorUtils class.
*
* @author Stephen Colebourne
- * @version $Id: TestExecutorUtils.java,v 1.1 2002/11/06 19:16:15 bayard Exp $
+ * @version $Id: TestExecutorUtils.java,v 1.2 2002/11/22 22:52:40 bayard Exp $
*/
public class TestExecutorUtils extends junit.framework.TestCase {
+ // JDK 1.2 compliancy
+ private static final Map EMPTY_MAP = Collections.unmodifiableMap(new HashMap());
+
private static final Object cObject = new Object();
private static final Object cString = "Hello";
private static final Object cInteger = new Integer(6);
@@ -413,7 +416,7 @@ public class TestExecutorUtils extends junit.framework.TestCase {
public void testSwitchExecutorEx4() {
try {
- ExecutorUtils.switchExecutor(Collections.EMPTY_MAP);
+ ExecutorUtils.switchExecutor(EMPTY_MAP);
} catch (IllegalArgumentException ex) {
return;
}
@@ -487,7 +490,7 @@ public class TestExecutorUtils extends junit.framework.TestCase {
public void testSwitchMapExecutorEx2() {
try {
- ExecutorUtils.switchMapExecutor(Collections.EMPTY_MAP);
+ ExecutorUtils.switchMapExecutor(EMPTY_MAP);
} catch (IllegalArgumentException ex) {
return;
}
diff --git a/src/test/org/apache/commons/lang/functor/TestTransformerUtils.java b/src/test/org/apache/commons/lang/functor/TestTransformerUtils.java
index a36bebd3e..262c118cc 100644
--- a/src/test/org/apache/commons/lang/functor/TestTransformerUtils.java
+++ b/src/test/org/apache/commons/lang/functor/TestTransformerUtils.java
@@ -76,10 +76,13 @@ import org.apache.commons.lang.functor.PredicateUtils;
* Tests the org.apache.commons.lang.functor.TransformerUtils class.
*
* @author Stephen Colebourne
- * @version $Id: TestTransformerUtils.java,v 1.2 2002/11/06 19:16:15 bayard Exp $
+ * @version $Id: TestTransformerUtils.java,v 1.3 2002/11/22 22:52:40 bayard Exp $
*/
public class TestTransformerUtils extends junit.framework.TestCase {
+ // JDK 1.2 compliancy
+ private static final Map EMPTY_MAP = Collections.unmodifiableMap(new HashMap());
+
private static final Object cObject = new Object();
private static final Object cString = "Hello";
private static final Object cInteger = new Integer(6);
@@ -403,7 +406,7 @@ public class TestTransformerUtils extends junit.framework.TestCase {
public void testSwitchTransformerEx4() {
try {
- TransformerUtils.switchTransformer(Collections.EMPTY_MAP);
+ TransformerUtils.switchTransformer(EMPTY_MAP);
} catch (IllegalArgumentException ex) {
return;
}
@@ -460,7 +463,7 @@ public class TestTransformerUtils extends junit.framework.TestCase {
public void testSwitchMapTransformerEx2() {
try {
- TransformerUtils.switchMapTransformer(Collections.EMPTY_MAP);
+ TransformerUtils.switchMapTransformer(EMPTY_MAP);
} catch (IllegalArgumentException ex) {
return;
}