You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by mo...@apache.org on 2002/02/26 18:31:51 UTC
cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestAll.java TestArrayList.java TestArrayStack.java TestFastArrayList.java
morgand 02/02/26 09:31:51
Modified: collections/src/test/org/apache/commons/collections
TestAll.java TestArrayList.java TestArrayStack.java
TestFastArrayList.java
Log:
fixed bug where Collections classes were erroneously running against
JVM classes instead of subclasses
Revision Changes Path
1.20 +4 -5 jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java
Index: TestAll.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- TestAll.java 26 Feb 2002 00:17:24 -0000 1.19
+++ TestAll.java 26 Feb 2002 17:31:51 -0000 1.20
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v 1.19 2002/02/26 00:17:24 morgand Exp $
- * $Revision: 1.19 $
- * $Date: 2002/02/26 00:17:24 $
+ * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestAll.java,v 1.20 2002/02/26 17:31:51 morgand Exp $
+ * $Revision: 1.20 $
+ * $Date: 2002/02/26 17:31:51 $
*
* ====================================================================
*
@@ -66,7 +66,7 @@
/**
* Entry point for all Collections tests.
* @author Rodney Waldhoff
- * @version $Id: TestAll.java,v 1.19 2002/02/26 00:17:24 morgand Exp $
+ * @version $Id: TestAll.java,v 1.20 2002/02/26 17:31:51 morgand Exp $
*/
public class TestAll extends TestCase {
public TestAll(String testName) {
@@ -77,7 +77,6 @@
TestSuite suite = new TestSuite();
suite.addTest(TestArrayIterator.suite());
suite.addTest(TestArrayIterator2.suite());
- suite.addTest(TestArrayList.suite());
suite.addTest(TestArrayStack.suite());
suite.addTest(TestBeanMap.suite());
suite.addTest(TestCollectionUtils.suite());
1.4 +5 -11 jakarta-commons/collections/src/test/org/apache/commons/collections/TestArrayList.java
Index: TestArrayList.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestArrayList.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- TestArrayList.java 25 Feb 2002 23:51:24 -0000 1.3
+++ TestArrayList.java 26 Feb 2002 17:31:51 -0000 1.4
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestArrayList.java,v 1.3 2002/02/25 23:51:24 morgand Exp $
- * $Revision: 1.3 $
- * $Date: 2002/02/25 23:51:24 $
+ * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestArrayList.java,v 1.4 2002/02/26 17:31:51 morgand Exp $
+ * $Revision: 1.4 $
+ * $Date: 2002/02/26 17:31:51 $
*
* ====================================================================
*
@@ -69,9 +69,9 @@
/**
* @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
- * @version $Id: TestArrayList.java,v 1.3 2002/02/25 23:51:24 morgand Exp $
+ * @version $Id: TestArrayList.java,v 1.4 2002/02/26 17:31:51 morgand Exp $
*/
-public class TestArrayList extends TestList
+public abstract class TestArrayList extends TestList
{
public TestArrayList(String testName)
{
@@ -94,12 +94,6 @@
public void setUp()
{
list = (ArrayList) makeEmptyList();
- }
-
- public List makeEmptyList()
- {
- ArrayList al = new ArrayList();
- return (al);
}
public void testNewArrayList()
1.6 +6 -6 jakarta-commons/collections/src/test/org/apache/commons/collections/TestArrayStack.java
Index: TestArrayStack.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestArrayStack.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- TestArrayStack.java 14 Jul 2001 23:33:26 -0000 1.5
+++ TestArrayStack.java 26 Feb 2002 17:31:51 -0000 1.6
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestArrayStack.java,v 1.5 2001/07/14 23:33:26 craigmcc Exp $
- * $Revision: 1.5 $
- * $Date: 2001/07/14 23:33:26 $
+ * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestArrayStack.java,v 1.6 2002/02/26 17:31:51 morgand Exp $
+ * $Revision: 1.6 $
+ * $Date: 2002/02/26 17:31:51 $
*
* ====================================================================
*
@@ -66,7 +66,7 @@
/**
* @author Craig McClanahan
- * @version $Id: TestArrayStack.java,v 1.5 2001/07/14 23:33:26 craigmcc Exp $
+ * @version $Id: TestArrayStack.java,v 1.6 2002/02/26 17:31:51 morgand Exp $
*/
public class TestArrayStack extends TestArrayList {
@@ -84,14 +84,14 @@
junit.textui.TestRunner.main(testCaseName);
}
- public List makeList() {
+ public List makeEmptyList() {
return new ArrayStack();
}
protected ArrayStack stack = null;
public void setUp() {
- stack = (ArrayStack) makeList();
+ stack = (ArrayStack) makeEmptyList();
list = stack;
}
1.4 +6 -6 jakarta-commons/collections/src/test/org/apache/commons/collections/TestFastArrayList.java
Index: TestFastArrayList.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestFastArrayList.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- TestFastArrayList.java 21 Apr 2001 12:22:30 -0000 1.3
+++ TestFastArrayList.java 26 Feb 2002 17:31:51 -0000 1.4
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestFastArrayList.java,v 1.3 2001/04/21 12:22:30 craigmcc Exp $
- * $Revision: 1.3 $
- * $Date: 2001/04/21 12:22:30 $
+ * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestFastArrayList.java,v 1.4 2002/02/26 17:31:51 morgand Exp $
+ * $Revision: 1.4 $
+ * $Date: 2002/02/26 17:31:51 $
*
* ====================================================================
*
@@ -69,7 +69,7 @@
/**
* @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
- * @version $Id: TestFastArrayList.java,v 1.3 2001/04/21 12:22:30 craigmcc Exp $
+ * @version $Id: TestFastArrayList.java,v 1.4 2002/02/26 17:31:51 morgand Exp $
*/
public class TestFastArrayList extends TestArrayList
{
@@ -91,10 +91,10 @@
public void setUp()
{
- list = (ArrayList) makeList();
+ list = (ArrayList) makeEmptyList();
}
- public List makeList()
+ public List makeEmptyList()
{
FastArrayList fal = new FastArrayList();
fal.setFast(false);
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>