commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestMultiHashMap.java
Date Sun, 24 Nov 2002 20:24:49 GMT
scolebourne    2002/11/24 12:24:49

  Modified:    collections/src/test/org/apache/commons/collections
                        TestMultiHashMap.java
  Log:
  Add test for equals that demonstrates a bug
  
  Revision  Changes    Path
  1.9       +10 -3     jakarta-commons/collections/src/test/org/apache/commons/collections/TestMultiHashMap.java
  
  Index: TestMultiHashMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestMultiHashMap.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- TestMultiHashMap.java	24 Nov 2002 19:38:09 -0000	1.8
  +++ TestMultiHashMap.java	24 Nov 2002 20:24:49 -0000	1.9
  @@ -263,6 +263,13 @@
       }
   
       public void testMapEquals() {
  +        MultiHashMap one = new MultiHashMap();
  +        Integer value = new Integer(1);
  +        one.put("One", value);
  +        one.remove("One", value);
  +        
  +        MultiHashMap two = new MultiHashMap();
  +        assertEquals(two, one);
       }
   
       public void testMapHashCode() {
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message