commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestSequencedHashMap.java
Date Wed, 20 Feb 2002 20:50:23 GMT
morgand     02/02/20 12:50:23

  Modified:    collections/src/test/org/apache/commons/collections
                        TestSequencedHashMap.java
  Log:
  made testing of SequencedHashMap subclasses easier
  
  Revision  Changes    Path
  1.3       +9 -3      jakarta-commons/collections/src/test/org/apache/commons/collections/TestSequencedHashMap.java
  
  Index: TestSequencedHashMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestSequencedHashMap.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestSequencedHashMap.java	15 Feb 2002 21:08:38 -0000	1.2
  +++ TestSequencedHashMap.java	20 Feb 2002 20:50:23 -0000	1.3
  @@ -64,8 +64,12 @@
   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 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() {
  
  
  

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


Mime
View raw message