bayard 2002/11/22 15:11:59
Modified: lang/src/test/org/apache/commons/lang/functor
TestExecutorUtils.java TestTransformerUtils.java
Log:
And moved bakc to 1.3 until I can figure out how to make them work at 1.2. Code
appears to try to modify them?!?
Revision Changes Path
1.3 +3 -6
jakarta-commons/lang/src/test/org/apache/commons/lang/functor/TestExecutorUtils.java
Index: TestExecutorUtils.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/functor/TestExecutorUtils.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- TestExecutorUtils.java 22 Nov 2002 22:52:40 -0000 1.2
+++ TestExecutorUtils.java 22 Nov 2002 23:11:58 -0000 1.3
@@ -72,9 +72,6 @@
*/
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 void testSwitchExecutorEx4() {
try {
- ExecutorUtils.switchExecutor(EMPTY_MAP);
+ ExecutorUtils.switchExecutor(Collections.EMPTY_MAP);
} catch (IllegalArgumentException ex) {
return;
}
@@ -490,7 +487,7 @@
public void testSwitchMapExecutorEx2() {
try {
- ExecutorUtils.switchMapExecutor(EMPTY_MAP);
+ ExecutorUtils.switchMapExecutor(Collections.EMPTY_MAP);
} catch (IllegalArgumentException ex) {
return;
}
1.4 +3 -6
jakarta-commons/lang/src/test/org/apache/commons/lang/functor/TestTransformerUtils.java
Index: TestTransformerUtils.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/functor/TestTransformerUtils.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- TestTransformerUtils.java 22 Nov 2002 22:52:40 -0000 1.3
+++ TestTransformerUtils.java 22 Nov 2002 23:11:58 -0000 1.4
@@ -80,9 +80,6 @@
*/
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 void testSwitchTransformerEx4() {
try {
- TransformerUtils.switchTransformer(EMPTY_MAP);
+ TransformerUtils.switchTransformer(Collections.EMPTY_MAP);
} catch (IllegalArgumentException ex) {
return;
}
@@ -463,7 +460,7 @@
public void testSwitchMapTransformerEx2() {
try {
- TransformerUtils.switchMapTransformer(EMPTY_MAP);
+ TransformerUtils.switchMapTransformer(Collections.EMPTY_MAP);
} catch (IllegalArgumentException ex) {
return;
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>