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/iterators AbstractTestOrderedMapIterator.java
Date Thu, 11 Dec 2003 00:45:25 GMT
scolebourne    2003/12/10 16:45:25

  Modified:    collections/src/test/org/apache/commons/collections/iterators
                        AbstractTestOrderedMapIterator.java
  Log:
  Handle structural modify maps better
  
  Revision  Changes    Path
  1.6       +5 -4      jakarta-commons/collections/src/test/org/apache/commons/collections/iterators/AbstractTestOrderedMapIterator.java
  
  Index: AbstractTestOrderedMapIterator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/iterators/AbstractTestOrderedMapIterator.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AbstractTestOrderedMapIterator.java	7 Dec 2003 01:21:51 -0000	1.5
  +++ AbstractTestOrderedMapIterator.java	11 Dec 2003 00:45:25 -0000	1.6
  @@ -164,9 +164,10 @@
               
               // getValue
               Object value = it.getValue();
  -            assertSame("Value must be mapped to key", map.get(key), value);
  +            if (isGetStructuralModify() == false) {
  +                assertSame("Value must be mapped to key", map.get(key), value);
  +            }
               assertTrue("Value must be in map",  map.containsValue(value));
  -            assertSame("Value must be mapped to key", map.get(key), value);
   
               assertEquals(true, it.hasNext());
               
  
  
  

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


Mime
View raw message