diff --git a/src/test/org/apache/commons/lang/functor/TestExecutorUtils.java b/src/test/org/apache/commons/lang/functor/TestExecutorUtils.java index c8159a191..b80f33b32 100644 --- a/src/test/org/apache/commons/lang/functor/TestExecutorUtils.java +++ b/src/test/org/apache/commons/lang/functor/TestExecutorUtils.java @@ -68,13 +68,10 @@ 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.2 2002/11/22 22:52:40 bayard Exp $ + * @version $Id: TestExecutorUtils.java,v 1.3 2002/11/22 23:11:58 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); @@ -416,7 +413,7 @@ public class TestExecutorUtils extends junit.framework.TestCase { public void testSwitchExecutorEx4() { try { - ExecutorUtils.switchExecutor(EMPTY_MAP); + ExecutorUtils.switchExecutor(Collections.EMPTY_MAP); } catch (IllegalArgumentException ex) { return; } @@ -490,7 +487,7 @@ public class TestExecutorUtils extends junit.framework.TestCase { public void testSwitchMapExecutorEx2() { try { - ExecutorUtils.switchMapExecutor(EMPTY_MAP); + ExecutorUtils.switchMapExecutor(Collections.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 262c118cc..dd065c623 100644 --- a/src/test/org/apache/commons/lang/functor/TestTransformerUtils.java +++ b/src/test/org/apache/commons/lang/functor/TestTransformerUtils.java @@ -76,13 +76,10 @@ 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.3 2002/11/22 22:52:40 bayard Exp $ + * @version $Id: TestTransformerUtils.java,v 1.4 2002/11/22 23:11:58 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); @@ -406,7 +403,7 @@ public class TestTransformerUtils extends junit.framework.TestCase { public void testSwitchTransformerEx4() { try { - TransformerUtils.switchTransformer(EMPTY_MAP); + TransformerUtils.switchTransformer(Collections.EMPTY_MAP); } catch (IllegalArgumentException ex) { return; } @@ -463,7 +460,7 @@ public class TestTransformerUtils extends junit.framework.TestCase { public void testSwitchMapTransformerEx2() { try { - TransformerUtils.switchMapTransformer(EMPTY_MAP); + TransformerUtils.switchMapTransformer(Collections.EMPTY_MAP); } catch (IllegalArgumentException ex) { return; }