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/map TestFixedSizeSortedMap.java
Date Fri, 09 Apr 2004 09:40:15 GMT
scolebourne    2004/04/09 02:40:15

  Modified:    collections/src/test/org/apache/commons/collections/map
                        TestFixedSizeSortedMap.java
  Log:
  Use support to work around bug in TreeMap sub map deserialization
  
  Revision  Changes    Path
  1.7       +8 -16     jakarta-commons/collections/src/test/org/apache/commons/collections/map/TestFixedSizeSortedMap.java
  
  Index: TestFixedSizeSortedMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/map/TestFixedSizeSortedMap.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestFixedSizeSortedMap.java	2 Apr 2004 23:12:34 -0000	1.6
  +++ TestFixedSizeSortedMap.java	9 Apr 2004 09:40:15 -0000	1.7
  @@ -47,6 +47,7 @@
           junit.textui.TestRunner.main(testCaseName);
       }
   
  +    //-----------------------------------------------------------------------
       public Map makeEmptyMap() {
           return FixedSizeSortedMap.decorate(new TreeMap());
       }
  @@ -57,6 +58,11 @@
           return FixedSizeSortedMap.decorate(map);
       }
       
  +    public boolean isSubMapViewsSerializable() {
  +        // TreeMap sub map views have a bug in deserialization.
  +        return false;
  +    }
  +
       public boolean isPutAddSupported() {
           return false;
       }
  @@ -65,25 +71,11 @@
           return false;
       }
   
  +    //-----------------------------------------------------------------------
       public String getCompatibilityVersion() {
           return "3.1";
       }
       
  -    public String[] ignoredTests() {
  -        // TreeMap has a bug (it doesn't deserialize SubMaps properly), thus ignore...
  -        return new String [] {
  -            "TestFixedSizeSortedMap.bulkTestHeadMap.testEmptyMapCompatibility",
  -            "TestFixedSizeSortedMap.bulkTestHeadMap.testFullMapCompatibility",
  -            "TestFixedSizeSortedMap.bulkTestHeadMap.testSerializeDeserializeThenCompare",
  -            "TestFixedSizeSortedMap.bulkTestTailMap.testEmptyMapCompatibility",
  -            "TestFixedSizeSortedMap.bulkTestTailMap.testFullMapCompatibility",
  -            "TestFixedSizeSortedMap.bulkTestTailMap.testSerializeDeserializeThenCompare",
  -            "TestFixedSizeSortedMap.bulkTestSubMap.testEmptyMapCompatibility",
  -            "TestFixedSizeSortedMap.bulkTestSubMap.testFullMapCompatibility",
  -            "TestFixedSizeSortedMap.bulkTestSubMap.testSerializeDeserializeThenCompare",
  -        };
  -    }
  -
   //    public void testCreate() throws Exception {
   //        resetEmpty();
   //        writeExternalFormToDisk(
  
  
  

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