made testing of SequencedHashMap subclasses easier

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130538 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Morgan James Delagrange 2002-02-20 20:50:23 +00:00
parent cd6254ae22
commit 7b2312f796
1 changed files with 9 additions and 3 deletions

View File

@ -64,8 +64,12 @@ import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit tests {@link org.apache.commons.collections.SequencedHashMap}.
*
* Unit tests
* {@link org.apache.commons.collections.SequencedHashMap}.
* Be sure to use the "labRat" instance whenever possible,
* so that subclasses will be tested correctly.
*
* @author <a href="mailto:morgand@apache.org">Morgan Delagrange</a>
* @author <a href="mailto:dlr@collab.net">Daniel Rall</a>
* @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
* @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
@ -92,7 +96,9 @@ public class TestSequencedHashMap extends TestHashMap
public void setUp() {
super.setUp();
labRat = new SequencedHashMap();
// use makeMap and cast the result to a SeqHashMap
// so that subclasses of SeqHashMap can share these tests
labRat = (SequencedHashMap) makeMap();
}
public Map makeMap() {