ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/testcases/org/apache/tools/ant IntrospectionHelperTest.java
Date Mon, 13 Sep 2004 13:26:32 GMT
peterreilly    2004/09/13 06:26:32

  Modified:    src/testcases/org/apache/tools/ant
                        IntrospectionHelperTest.java
  Log:
  allow testcase to compile under jdk1.2.2
  
  Revision  Changes    Path
  1.23      +3 -2      ant/src/testcases/org/apache/tools/ant/IntrospectionHelperTest.java
  
  Index: IntrospectionHelperTest.java
  ===================================================================
  RCS file: /home/cvs/ant/src/testcases/org/apache/tools/ant/IntrospectionHelperTest.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- IntrospectionHelperTest.java	23 Aug 2004 13:42:20 -0000	1.22
  +++ IntrospectionHelperTest.java	13 Sep 2004 13:26:32 -0000	1.23
  @@ -24,6 +24,7 @@
   import java.lang.reflect.InvocationTargetException;
   import java.util.Collections;
   import java.util.Enumeration;
  +import java.util.HashMap;
   import java.util.Hashtable;
   import java.util.Iterator;
   import java.util.List;
  @@ -603,7 +604,7 @@
                           makeTable("key", "value"), makeTable("1", "2"));
   
           assertExtMethod(extensions.get(2), "addConfigured", Map.class,
  -                        Collections.EMPTY_MAP, makeTable("1", "2"));
  +                        new HashMap(), makeTable("1", "2"));
       }
   
       private void assertExtMethod(Object mo, String methodName, Class methodArg,
  @@ -654,7 +655,7 @@
   
       public void addConfigured(Map m) {
           // Valid extension point
  -        assertTrue(Collections.EMPTY_MAP == m);
  +        assertTrue(m.size() == 0);
       }
   
       public void addConfigured(Hashtable h) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message