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 Wed, 03 Dec 2003 19:03:21 GMT
scolebourne    2003/12/03 11:03:21

  Modified:    collections/src/test/org/apache/commons/collections/iterators
                        AbstractTestOrderedMapIterator.java
  Log:
  Improve testing of iterators
  
  Revision  Changes    Path
  1.4       +4 -2      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractTestOrderedMapIterator.java	1 Dec 2003 22:48:58 -0000	1.3
  +++ AbstractTestOrderedMapIterator.java	3 Dec 2003 19:03:21 -0000	1.4
  @@ -196,11 +196,13 @@
               assertEquals(it2.next(), key);
               list.add(key);
           }
  +        assertEquals(map.size(), list.size());
           while (it.hasPrevious()) {
               Object key = it.previous();
               assertEquals(list.get(list.size() - 1), key);
               list.remove(list.size() - 1);
           }
  +        assertEquals(0, list.size());
       }
       
   }
  
  
  

---------------------------------------------------------------------
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