You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2002/12/15 13:30:44 UTC

cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang/functor TestTransformerUtils.java TestExecutorUtils.java

scolebourne    2002/12/15 04:30:44

  Modified:    lang/src/test/org/apache/commons/lang/functor
                        TestTransformerUtils.java TestExecutorUtils.java
  Log:
  Change so they compile under jdk1.2.1
  
  Revision  Changes    Path
  1.5       +3 -3      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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestTransformerUtils.java	22 Nov 2002 23:11:58 -0000	1.4
  +++ TestTransformerUtils.java	15 Dec 2002 12:30:44 -0000	1.5
  @@ -403,7 +403,7 @@
       
       public void testSwitchTransformerEx4() {
           try {
  -            TransformerUtils.switchTransformer(Collections.EMPTY_MAP);
  +            TransformerUtils.switchTransformer(new HashMap());
           } catch (IllegalArgumentException ex) {
               return;
           }
  @@ -460,7 +460,7 @@
       
       public void testSwitchMapTransformerEx2() {
           try {
  -            TransformerUtils.switchMapTransformer(Collections.EMPTY_MAP);
  +            TransformerUtils.switchMapTransformer(new HashMap());
           } catch (IllegalArgumentException ex) {
               return;
           }
  
  
  
  1.4       +3 -3      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestExecutorUtils.java	22 Nov 2002 23:11:58 -0000	1.3
  +++ TestExecutorUtils.java	15 Dec 2002 12:30:44 -0000	1.4
  @@ -413,7 +413,7 @@
       
       public void testSwitchExecutorEx4() {
           try {
  -            ExecutorUtils.switchExecutor(Collections.EMPTY_MAP);
  +            ExecutorUtils.switchExecutor(new HashMap());
           } catch (IllegalArgumentException ex) {
               return;
           }
  @@ -487,7 +487,7 @@
       
       public void testSwitchMapExecutorEx2() {
           try {
  -            ExecutorUtils.switchMapExecutor(Collections.EMPTY_MAP);
  +            ExecutorUtils.switchMapExecutor(new HashMap());
           } catch (IllegalArgumentException ex) {
               return;
           }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>