Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 26887 invoked from network); 2 Jun 2004 22:07:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Jun 2004 22:07:59 -0000 Received: (qmail 51578 invoked by uid 500); 2 Jun 2004 22:08:14 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 51438 invoked by uid 500); 2 Jun 2004 22:08:13 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 51425 invoked by uid 500); 2 Jun 2004 22:08:13 -0000 Received: (qmail 51414 invoked by uid 99); 2 Jun 2004 22:08:13 -0000 Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Wed, 02 Jun 2004 15:08:13 -0700 Received: (qmail 26795 invoked by uid 1529); 2 Jun 2004 22:07:53 -0000 Date: 2 Jun 2004 22:07:53 -0000 Message-ID: <20040602220753.26794.qmail@minotaur.apache.org> From: scolebourne@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections/list TestTypedList.java TestUnmodifiableList.java TestPredicatedList.java TestSetUniqueList.java TestTransformedList.java TestFixedSizeList.java TestAll.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N scolebourne 2004/06/02 15:07:53 Modified: collections/src/test/org/apache/commons/collections/list TestUnmodifiableList.java TestPredicatedList.java TestSetUniqueList.java TestTransformedList.java TestFixedSizeList.java TestAll.java Added: collections/src/test/org/apache/commons/collections/list TestTypedList.java Log: Make decorator classes serializable, bug 18815 Revision Changes Path 1.7 +13 -1 jakarta-commons/collections/src/test/org/apache/commons/collections/list/TestUnmodifiableList.java Index: TestUnmodifiableList.java =================================================================== RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/list/TestUnmodifiableList.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- TestUnmodifiableList.java 18 Feb 2004 01:20:34 -0000 1.6 +++ TestUnmodifiableList.java 2 Jun 2004 22:07:53 -0000 1.7 @@ -166,4 +166,16 @@ // expected } } + + public String getCompatibilityVersion() { + return "3.1"; + } + +// public void testCreate() throws Exception { +// resetEmpty(); +// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/UnmodifiableList.emptyCollection.version3.1.obj"); +// resetFull(); +// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/UnmodifiableList.fullCollection.version3.1.obj"); +// } + } 1.7 +13 -2 jakarta-commons/collections/src/test/org/apache/commons/collections/list/TestPredicatedList.java Index: TestPredicatedList.java =================================================================== RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/list/TestPredicatedList.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- TestPredicatedList.java 18 Feb 2004 01:20:34 -0000 1.6 +++ TestPredicatedList.java 2 Jun 2004 22:07:53 -0000 1.7 @@ -140,5 +140,16 @@ assertTrue("List should contain legal element", list.contains("three")); } - + + public String getCompatibilityVersion() { + return "3.1"; + } + +// public void testCreate() throws Exception { +// resetEmpty(); +// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/PredicatedList.emptyCollection.version3.1.obj"); +// resetFull(); +// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/PredicatedList.fullCollection.version3.1.obj"); +// } + } 1.6 +12 -1 jakarta-commons/collections/src/test/org/apache/commons/collections/list/TestSetUniqueList.java Index: TestSetUniqueList.java =================================================================== RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/list/TestSetUniqueList.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- TestSetUniqueList.java 18 Feb 2004 01:20:34 -0000 1.5 +++ TestSetUniqueList.java 2 Jun 2004 22:07:53 -0000 1.6 @@ -275,4 +275,15 @@ assertEquals("Duplicate element was added", 2, lset.size()); } + public String getCompatibilityVersion() { + return "3.1"; + } + +// public void testCreate() throws Exception { +// resetEmpty(); +// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/SetUniqueList.emptyCollection.version3.1.obj"); +// resetFull(); +// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/SetUniqueList.fullCollection.version3.1.obj"); +// } + } 1.6 +13 -1 jakarta-commons/collections/src/test/org/apache/commons/collections/list/TestTransformedList.java Index: TestTransformedList.java =================================================================== RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/list/TestTransformedList.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- TestTransformedList.java 18 Feb 2004 01:20:34 -0000 1.5 +++ TestTransformedList.java 2 Jun 2004 22:07:53 -0000 1.6 @@ -116,4 +116,16 @@ assertEquals(new Integer(3), list.get(1)); assertEquals(new Integer(2), list.get(2)); } + + public String getCompatibilityVersion() { + return "3.1"; + } + +// public void testCreate() throws Exception { +// resetEmpty(); +// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/TransformedList.emptyCollection.version3.1.obj"); +// resetFull(); +// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/TransformedList.fullCollection.version3.1.obj"); +// } + } 1.6 +12 -1 jakarta-commons/collections/src/test/org/apache/commons/collections/list/TestFixedSizeList.java Index: TestFixedSizeList.java =================================================================== RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/list/TestFixedSizeList.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- TestFixedSizeList.java 18 Feb 2004 01:20:34 -0000 1.5 +++ TestFixedSizeList.java 2 Jun 2004 22:07:53 -0000 1.6 @@ -64,4 +64,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/FixedSizeList.emptyCollection.version3.1.obj"); +// resetFull(); +// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/FixedSizeList.fullCollection.version3.1.obj"); +// } + } 1.8 +2 -2 jakarta-commons/collections/src/test/org/apache/commons/collections/list/TestAll.java Index: TestAll.java =================================================================== RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/list/TestAll.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- TestAll.java 1 Jun 2004 23:08:04 -0000 1.7 +++ TestAll.java 2 Jun 2004 22:07:53 -0000 1.8 @@ -50,7 +50,7 @@ suite.addTest(TestSetUniqueList.suite()); suite.addTest(TestSynchronizedList.suite()); suite.addTest(TestTransformedList.suite()); -// suite.addTest(TestTypedList.suite()); + suite.addTest(TestTypedList.suite()); suite.addTest(TestUnmodifiableList.suite()); return suite; 1.1 jakarta-commons/collections/src/test/org/apache/commons/collections/list/TestTypedList.java Index: TestTypedList.java =================================================================== /* * Copyright 2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.collections.list; import java.util.ArrayList; import java.util.Collection; import java.util.List; import junit.framework.Test; import junit.framework.TestSuite; /** * Extension of {@link TestList} for exercising the {@link TypedList} * implementation. * * @since Commons Collections 3.1 * @version $Revision: 1.1 $ $Date: 2004/06/02 22:07:53 $ * * @author Stephen Colebourne */ public class TestTypedList extends AbstractTestList { public TestTypedList(String testName) { super(testName); } public static Test suite() { return new TestSuite(TestTypedList.class); } public static void main(String args[]) { String[] testCaseName = { TestTypedList.class.getName()}; junit.textui.TestRunner.main(testCaseName); } public Collection makeConfirmedCollection() { return new ArrayList(); } public List makeEmptyList() { return TypedList.decorate(new ArrayList(), Object.class); } public boolean isNullSupported() { return false; } public boolean skipSerializedCanonicalTests() { return true; // TypedList and PredicatedList get confused } } --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org