Added JDK 1.2 compliant EMPTY_MAPs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137149 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d5fd07f877
commit
d0fed98d52
|
@ -68,10 +68,13 @@ import org.apache.commons.lang.functor.PredicateUtils;
|
|||
* Tests the org.apache.commons.lang.functor.ExecutorUtils class.
|
||||
*
|
||||
* @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
|
||||
* @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;
|
||||
}
|
||||
|
|
|
@ -76,10 +76,13 @@ import org.apache.commons.lang.functor.PredicateUtils;
|
|||
* Tests the org.apache.commons.lang.functor.TransformerUtils class.
|
||||
*
|
||||
* @author <a href="mailto:scolebourne@joda.org">Stephen Colebourne</a>
|
||||
* @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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue