morgand 02/02/25 16:21:46 Modified: collections/src/test/org/apache/commons/collections TestHashMap.java TestTreeMap.java Log: made test classes that verify JDK contracts abstract, so that we will not have to verify their serialization Revision Changes Path 1.5 +5 -26 jakarta-commons/collections/src/test/org/apache/commons/collections/TestHashMap.java Index: TestHashMap.java =================================================================== RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestHashMap.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- TestHashMap.java 22 Feb 2002 22:01:48 -0000 1.4 +++ TestHashMap.java 26 Feb 2002 00:21:46 -0000 1.5 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestHashMap.java,v 1.4 2002/02/22 22:01:48 morgand Exp $ - * $Revision: 1.4 $ - * $Date: 2002/02/22 22:01:48 $ + * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestHashMap.java,v 1.5 2002/02/26 00:21:46 morgand Exp $ + * $Revision: 1.5 $ + * $Date: 2002/02/26 00:21:46 $ * * ==================================================================== * @@ -69,20 +69,15 @@ /** * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a> - * @version $Id: TestHashMap.java,v 1.4 2002/02/22 22:01:48 morgand Exp $ + * @version $Id: TestHashMap.java,v 1.5 2002/02/26 00:21:46 morgand Exp $ */ -public class TestHashMap extends TestMap +public abstract class TestHashMap extends TestMap { public TestHashMap(String testName) { super(testName); } - public static Test suite() - { - return new TestSuite(TestHashMap.class); - } - public static void main(String args[]) { String[] testCaseName = { TestHashMap.class.getName() }; @@ -115,20 +110,4 @@ assertEquals("Next Item is 'First Item'", map.get("second"), "Second Item"); } - - /** - * We don't need to test compatibility for JVM collections. Override in - * subclasses. - */ - public void testEmptyMapCompatibility() { - - } - - /** - * We don't need to test compatibility for JVM collections. Override in - * subclasses. - */ - public void testFullMapCompatibility() { - - } } 1.4 +5 -10 jakarta-commons/collections/src/test/org/apache/commons/collections/TestTreeMap.java Index: TestTreeMap.java =================================================================== RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestTreeMap.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- TestTreeMap.java 22 Feb 2002 02:18:50 -0000 1.3 +++ TestTreeMap.java 26 Feb 2002 00:21:46 -0000 1.4 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestTreeMap.java,v 1.3 2002/02/22 02:18:50 mas Exp $ - * $Revision: 1.3 $ - * $Date: 2002/02/22 02:18:50 $ + * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestTreeMap.java,v 1.4 2002/02/26 00:21:46 morgand Exp $ + * $Revision: 1.4 $ + * $Date: 2002/02/26 00:21:46 $ * * ==================================================================== * @@ -69,18 +69,13 @@ /** * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a> - * @version $Id: TestTreeMap.java,v 1.3 2002/02/22 02:18:50 mas Exp $ + * @version $Id: TestTreeMap.java,v 1.4 2002/02/26 00:21:46 morgand Exp $ */ -public class TestTreeMap extends TestMap +public abstract class TestTreeMap extends TestMap { public TestTreeMap(String testName) { super(testName); - } - - public static Test suite() - { - return new TestSuite(TestTreeMap.class); } public static void main(String args[])
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>