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 Fri, 22 Feb 2002 07:13:03 GMT
morgand     02/02/21 23:13:03

  Modified:    collections/src/test/org/apache/commons/collections
                        TestSequencedHashMap.java
  Log:
  fixed error in serialization test
  
  Revision  Changes    Path
  1.9       +5 -4      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.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- TestSequencedHashMap.java	22 Feb 2002 06:25:10 -0000	1.8
  +++ TestSequencedHashMap.java	22 Feb 2002 07:13:02 -0000	1.9
  @@ -183,8 +183,9 @@
       public void testFullMapSerialization() 
       throws IOException, ClassNotFoundException {
           SequencedHashMap map = (SequencedHashMap) makeFullMap();
  -        if (!(map instanceof Serializable)) return;
  -        
  +
  +        if (!(map instanceof Serializable)) return;  
  +
           byte[] objekt = writeExternalFormToBytes((Serializable) map);
           SequencedHashMap map2 = (SequencedHashMap) readExternalFormFromBytes(objekt);
   
  @@ -196,9 +197,9 @@
           assertEquals("Both maps have the same first key",
                        map2.getFirstKey(),getSampleKeys()[0]);
           assertEquals("Both maps have the same last key",
  -                     map.getLastKey(),getSampleKeys()[0]);
  +                     map.getLastKey(),getSampleKeys()[getSampleKeys().length - 1]);
           assertEquals("Both maps have the same last key",
  -                     map2.getLastKey(),getSampleKeys()[0]);
  +                     map2.getLastKey(),getSampleKeys()[getSampleKeys().length - 1]);
       }
   
       protected void tearDown() {
  
  
  

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