fixed bug where Collections classes were erroneously running against

JVM classes instead of subclasses


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130600 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Morgan James Delagrange 2002-02-26 17:31:51 +00:00
parent 224a627029
commit 4d219cfa30
4 changed files with 21 additions and 28 deletions

View File

@ -1,7 +1,7 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/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/jerenkrantz/tmp/commons/commons-convert/cvs/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 @@ import junit.framework.*;
/**
* 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 @@ public class TestAll extends TestCase {
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());

View File

@ -1,7 +1,7 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/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/jerenkrantz/tmp/commons/commons-convert/cvs/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 @@ import java.util.List;
/**
* @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)
{
@ -96,12 +96,6 @@ public class TestArrayList extends TestList
list = (ArrayList) makeEmptyList();
}
public List makeEmptyList()
{
ArrayList al = new ArrayList();
return (al);
}
public void testNewArrayList()
{
assertTrue("New list is empty", list.isEmpty());

View File

@ -1,7 +1,7 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/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/jerenkrantz/tmp/commons/commons-convert/cvs/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 @@ import java.util.*;
/**
* @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 @@ public class TestArrayStack extends TestArrayList {
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;
}

View File

@ -1,7 +1,7 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/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/jerenkrantz/tmp/commons/commons-convert/cvs/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 @@ import java.util.List;
/**
* @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 class TestFastArrayList extends TestArrayList
public void setUp()
{
list = (ArrayList) makeList();
list = (ArrayList) makeEmptyList();
}
public List makeList()
public List makeEmptyList()
{
FastArrayList fal = new FastArrayList();
fal.setFast(false);