commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections/list AbstractTestList.java
Date Thu, 11 Dec 2003 00:16:02 GMT
scolebourne    2003/12/10 16:16:02

  Modified:    collections/src/test/org/apache/commons/collections/list
                        AbstractTestList.java
  Log:
  Improve serialization tests
  
  Revision  Changes    Path
  1.3       +9 -3      jakarta-commons/collections/src/test/org/apache/commons/collections/list/AbstractTestList.java
  
  Index: AbstractTestList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/list/AbstractTestList.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractTestList.java	18 Nov 2003 22:37:14 -0000	1.2
  +++ AbstractTestList.java	11 Dec 2003 00:16:02 -0000	1.3
  @@ -987,6 +987,7 @@
           if(list instanceof Serializable && !skipSerializedCanonicalTests()) {
               List list2 = (List) readExternalFormFromDisk(getCanonicalEmptyCollectionName(list));
               assertTrue("List is empty",list2.size()  == 0);
  +            assertEquals(list, list2);
           }
       }
   
  @@ -1007,7 +1008,12 @@
           List list = makeFullList();
           if(list instanceof Serializable && !skipSerializedCanonicalTests()) {
               List list2 = (List) readExternalFormFromDisk(getCanonicalFullCollectionName(list));
  -            assertEquals("List is the right size",list2.size(), 4);
  +            if (list2.size() == 4) {
  +                // old serialized tests
  +                return;
  +            }
  +            assertEquals("List is the right size",list.size(), list2.size());
  +            assertEquals(list, list2);
           }
       }
   
  
  
  

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


Mime
View raw message