Enhanced TestMap to more completely test the Map contract.

Submitted by: Paul Jack ( pjack at sfaf dot org ).

Needed to change Paul's implementation slightly to get things compile properly
using JDK 1.2.  The 1.2 compiler thought that the "confirmed" field was
ambiguous in the anonymous inner class and thus needed to be qualified with a
ClassName.this.  In order to do that, the anonymous inner classes needed to be
made named inner classes.

This change exposes one test failure for MultiHashMap that appears to be caused
by its values() method not being backed by the map (bug 9573).


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130725 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Smith 2002-06-18 03:17:34 +00:00
parent 6b825d40c2
commit be0b62cfc3
2 changed files with 496 additions and 804 deletions

File diff suppressed because it is too large Load Diff

View File

@ -76,7 +76,7 @@ import junit.framework.TestSuite;
* @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
*/
public class TestSequencedHashMap extends TestMap
implements TestMap.SupportsPut, TestMap.EntrySetSupportsRemove
implements TestMap.SupportsPut
{
/**
* The instance to experiment on.