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 AbstractTestMap.java
Date Thu, 09 Oct 2003 20:20:23 GMT
scolebourne    2003/10/09 13:20:23

  Modified:    collections/src/test/org/apache/commons/collections
                        AbstractTestMap.java
  Log:
  Improve test error messages
  
  Revision  Changes    Path
  1.6       +6 -6      jakarta-commons/collections/src/test/org/apache/commons/collections/AbstractTestMap.java
  
  Index: AbstractTestMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/AbstractTestMap.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AbstractTestMap.java	7 Oct 2003 22:35:59 -0000	1.5
  +++ AbstractTestMap.java	9 Oct 2003 20:20:23 -0000	1.6
  @@ -702,9 +702,9 @@
   
           // test to make sure the canonical form has been preserved
           Map map = makeEmptyMap();
  -        if(map instanceof Serializable && !skipSerializedCanonicalTests()) {
  +        if (map instanceof Serializable && !skipSerializedCanonicalTests()) {
               Map map2 = (Map) readExternalFormFromDisk(getCanonicalEmptyCollectionName(map));
  -            assertTrue("Map is empty",map2.isEmpty());
  +            assertEquals("Map is empty", 0, map2.size());
           }
       }
   
  @@ -723,9 +723,9 @@
   
           // test to make sure the canonical form has been preserved
           Map map = makeFullMap();
  -        if(map instanceof Serializable && !skipSerializedCanonicalTests()) {
  +        if (map instanceof Serializable && !skipSerializedCanonicalTests()) {
               Map map2 = (Map) readExternalFormFromDisk(getCanonicalFullCollectionName(map));
  -            assertEquals("Map is the right size",map2.size(), getSampleKeys().length);
  +            assertEquals("Map is the right size", getSampleKeys().length, map2.size());
           }
       }
   
  
  
  

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