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 AbstractTestSortedMap.java
Date Fri, 02 Apr 2004 23:09:10 GMT
scolebourne    2004/04/02 15:09:10

  Modified:    collections/src/test/org/apache/commons/collections/map
                        AbstractTestSortedMap.java
  Log:
  Add support for testing sub maps
  
  Revision  Changes    Path
  1.5       +43 -4     jakarta-commons/collections/src/test/org/apache/commons/collections/map/AbstractTestSortedMap.java
  
  Index: AbstractTestSortedMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/map/AbstractTestSortedMap.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AbstractTestSortedMap.java	18 Feb 2004 01:20:38 -0000	1.4
  +++ AbstractTestSortedMap.java	2 Apr 2004 23:09:09 -0000	1.5
  @@ -140,9 +140,6 @@
               return subSortedNewValues.toArray();
           }
           
  -        public String getCompatibilityVersion() {
  -            return main.getCompatibilityVersion();
  -        }
           public boolean isAllowNullKey() {
               return main.isAllowNullKey();
           }
  @@ -199,6 +196,20 @@
               } catch (IllegalArgumentException ex) {}
               verify();
           }
  +        public String getCompatibilityVersion() {
  +            return main.getCompatibilityVersion() + ".HeadMapView";
  +        }
  +
  +//        public void testCreate() throws Exception {
  +//            Map map = makeEmptyMap();
  +//            writeExternalFormToDisk(
  +//                (java.io.Serializable) map,
  +//                "D:/dev/collections/data/test/FixedSizeSortedMap.emptyCollection.version3.1.HeadMapView.obj");
  +//            map = makeFullMap();
  +//            writeExternalFormToDisk(
  +//                (java.io.Serializable) map,
  +//                "D:/dev/collections/data/test/FixedSizeSortedMap.fullCollection.version3.1.HeadMapView.obj");
  +//        }
       }
       
       public static class TestTailMap extends TestViewMap {
  @@ -236,6 +247,20 @@
               } catch (IllegalArgumentException ex) {}
               verify();
           }
  +        public String getCompatibilityVersion() {
  +            return main.getCompatibilityVersion() + ".TailMapView";
  +        }
  +
  +//        public void testCreate() throws Exception {
  +//            Map map = makeEmptyMap();
  +//            writeExternalFormToDisk(
  +//                (java.io.Serializable) map,
  +//                "D:/dev/collections/data/test/FixedSizeSortedMap.emptyCollection.version3.1.TailMapView.obj");
  +//            map = makeFullMap();
  +//            writeExternalFormToDisk(
  +//                (java.io.Serializable) map,
  +//                "D:/dev/collections/data/test/FixedSizeSortedMap.fullCollection.version3.1.TailMapView.obj");
  +//        }
       }
       
       public static class TestSubMap extends TestViewMap {
  @@ -280,6 +305,20 @@
               } catch (IllegalArgumentException ex) {}
               verify();
           }
  +        public String getCompatibilityVersion() {
  +            return main.getCompatibilityVersion() + ".SubMapView";
  +        }
  +
  +//        public void testCreate() throws Exception {
  +//            Map map = makeEmptyMap();
  +//            writeExternalFormToDisk(
  +//                (java.io.Serializable) map,
  +//                "D:/dev/collections/data/test/FixedSizeSortedMap.emptyCollection.version3.1.SubMapView.obj");
  +//            map = makeFullMap();
  +//            writeExternalFormToDisk(
  +//                (java.io.Serializable) map,
  +//                "D:/dev/collections/data/test/FixedSizeSortedMap.fullCollection.version3.1.SubMapView.obj");
  +//        }
       }
       
   }
  
  
  

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