You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2004/06/03 00:06:33 UTC

cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections/collection TestUnmodifiableCollection.java TestTransformedCollection.java TestPredicatedCollection.java

scolebourne    2004/06/02 15:06:33

  Modified:    collections/src/test/org/apache/commons/collections/collection
                        TestUnmodifiableCollection.java
                        TestTransformedCollection.java
                        TestPredicatedCollection.java
  Log:
  Make decorator classes serializable, bug 18815
  
  Revision  Changes    Path
  1.4       +12 -1     jakarta-commons/collections/src/test/org/apache/commons/collections/collection/TestUnmodifiableCollection.java
  
  Index: TestUnmodifiableCollection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/collection/TestUnmodifiableCollection.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestUnmodifiableCollection.java	18 Feb 2004 01:20:40 -0000	1.3
  +++ TestUnmodifiableCollection.java	2 Jun 2004 22:06:33 -0000	1.4
  @@ -78,4 +78,15 @@
           return false;
       }
   
  +    public String getCompatibilityVersion() {
  +        return "3.1";
  +    }
  +
  +//    public void testCreate() throws Exception {
  +//        resetEmpty();
  +//        writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/UnmodifiableCollection.emptyCollection.version3.1.obj");
  +//        resetFull();
  +//        writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/UnmodifiableCollection.fullCollection.version3.1.obj");
  +//    }
  +
   }
  
  
  
  1.7       +13 -2     jakarta-commons/collections/src/test/org/apache/commons/collections/collection/TestTransformedCollection.java
  
  Index: TestTransformedCollection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/collection/TestTransformedCollection.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestTransformedCollection.java	10 Apr 2004 22:22:57 -0000	1.6
  +++ TestTransformedCollection.java	2 Jun 2004 22:06:33 -0000	1.7
  @@ -103,5 +103,16 @@
           
           assertEquals(true, coll.remove(new Integer((String) els[0])));
       }
  -    
  +
  +    public String getCompatibilityVersion() {
  +        return "3.1";
  +    }
  +
  +//    public void testCreate() throws Exception {
  +//        resetEmpty();
  +//        writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/TransformedCollection.emptyCollection.version3.1.obj");
  +//        resetFull();
  +//        writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/TransformedCollection.fullCollection.version3.1.obj");
  +//    }
  +
   }
  
  
  
  1.6       +13 -2     jakarta-commons/collections/src/test/org/apache/commons/collections/collection/TestPredicatedCollection.java
  
  Index: TestPredicatedCollection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/collection/TestPredicatedCollection.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestPredicatedCollection.java	18 Feb 2004 01:20:40 -0000	1.5
  +++ TestPredicatedCollection.java	2 Jun 2004 22:06:33 -0000	1.6
  @@ -50,7 +50,7 @@
           junit.textui.TestRunner.main(testCaseName);
       }
    
  - //------------------------------------------------------------------------
  +   //------------------------------------------------------------------------
           
       protected Predicate truePredicate = PredicateUtils.truePredicate();
       
  @@ -130,5 +130,16 @@
           assertTrue("Collection shouldn't contain illegal element", 
            !c.contains("four"));   
       }
  +
  +    public String getCompatibilityVersion() {
  +        return "3.1";
  +    }
  +
  +//    public void testCreate() throws Exception {
  +//        resetEmpty();
  +//        writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/PredicatedCollection.emptyCollection.version3.1.obj");
  +//        resetFull();
  +//        writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/PredicatedCollection.fullCollection.version3.1.obj");
  +//    }
   
   }
  
  
  

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