From 7feafdc4de0d51933e837e77e51525cd061bfcad Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Thu, 11 Dec 2003 00:45:25 +0000 Subject: [PATCH] Handle structural modify maps better git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131423 13f79535-47bb-0310-9956-ffa450edef68 --- .../iterators/AbstractTestOrderedMapIterator.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/test/org/apache/commons/collections/iterators/AbstractTestOrderedMapIterator.java b/src/test/org/apache/commons/collections/iterators/AbstractTestOrderedMapIterator.java index 567c77816..9fa223071 100644 --- a/src/test/org/apache/commons/collections/iterators/AbstractTestOrderedMapIterator.java +++ b/src/test/org/apache/commons/collections/iterators/AbstractTestOrderedMapIterator.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/AbstractTestOrderedMapIterator.java,v 1.5 2003/12/07 01:21:51 scolebourne Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/AbstractTestOrderedMapIterator.java,v 1.6 2003/12/11 00:45:25 scolebourne Exp $ * ==================================================================== * * The Apache Software License, Version 1.1 @@ -76,7 +76,7 @@ import org.apache.commons.collections.OrderedMapIterator; * overriding the supportsXxx() methods if necessary. * * @since Commons Collections 3.0 - * @version $Revision: 1.5 $ $Date: 2003/12/07 01:21:51 $ + * @version $Revision: 1.6 $ $Date: 2003/12/11 00:45:25 $ * * @author Stephen Colebourne */ @@ -164,9 +164,10 @@ public abstract class AbstractTestOrderedMapIterator extends AbstractTestMapIter // 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());