commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestArrayList.java TestCursorableLinkedList.java TestList.java
Date Mon, 25 Feb 2002 23:51:24 GMT
morgand     02/02/25 15:51:24

  Modified:    collections/src/test/org/apache/commons/collections
                        TestArrayList.java TestCursorableLinkedList.java
                        TestList.java
  Log:
  changed the makeList() method to makeEmptyList()
  
  Revision  Changes    Path
  1.3       +6 -6      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestArrayList.java	14 Jul 2001 23:33:26 -0000	1.2
  +++ TestArrayList.java	25 Feb 2002 23:51:24 -0000	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestArrayList.java,v
1.2 2001/07/14 23:33:26 craigmcc Exp $
  - * $Revision: 1.2 $
  - * $Date: 2001/07/14 23:33:26 $
  + * $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 $
    *
    * ====================================================================
    *
  @@ -69,7 +69,7 @@
   
   /**
    * @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
  - * @version $Id: TestArrayList.java,v 1.2 2001/07/14 23:33:26 craigmcc Exp $
  + * @version $Id: TestArrayList.java,v 1.3 2002/02/25 23:51:24 morgand Exp $
    */
   public class TestArrayList extends TestList
   {
  @@ -93,10 +93,10 @@
   
       public void setUp()
       {
  -        list = (ArrayList) makeList();
  +        list = (ArrayList) makeEmptyList();
       }
   
  -    public List makeList()
  +    public List makeEmptyList()
       {
           ArrayList al = new ArrayList();
           return (al);
  
  
  
  1.4       +5 -5      jakarta-commons/collections/src/test/org/apache/commons/collections/TestCursorableLinkedList.java
  
  Index: TestCursorableLinkedList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestCursorableLinkedList.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestCursorableLinkedList.java	14 Jul 2001 23:33:27 -0000	1.3
  +++ TestCursorableLinkedList.java	25 Feb 2002 23:51:24 -0000	1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestCursorableLinkedList.java,v
1.3 2001/07/14 23:33:27 craigmcc Exp $
  - * $Revision: 1.3 $
  - * $Date: 2001/07/14 23:33:27 $
  + * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestCursorableLinkedList.java,v
1.4 2002/02/25 23:51:24 morgand Exp $
  + * $Revision: 1.4 $
  + * $Date: 2002/02/25 23:51:24 $
    *
    * ====================================================================
    *
  @@ -66,7 +66,7 @@
   
   /**
    * @author Rodney Waldhoff
  - * @version $Id: TestCursorableLinkedList.java,v 1.3 2001/07/14 23:33:27 craigmcc Exp $
  + * @version $Id: TestCursorableLinkedList.java,v 1.4 2002/02/25 23:51:24 morgand Exp $
    */
   public class TestCursorableLinkedList extends TestList {
       public TestCursorableLinkedList(String testName) {
  @@ -88,7 +88,7 @@
           list = new CursorableLinkedList();
       }
   
  -    public List makeList() {
  +    public List makeEmptyList() {
           return new CursorableLinkedList();
       }
   
  
  
  
  1.6       +28 -28    jakarta-commons/collections/src/test/org/apache/commons/collections/TestList.java
  
  Index: TestList.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestList.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestList.java	14 Jul 2001 23:33:27 -0000	1.5
  +++ TestList.java	25 Feb 2002 23:51:24 -0000	1.6
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestList.java,v
1.5 2001/07/14 23:33:27 craigmcc Exp $
  - * $Revision: 1.5 $
  - * $Date: 2001/07/14 23:33:27 $
  + * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/TestList.java,v
1.6 2002/02/25 23:51:24 morgand Exp $
  + * $Revision: 1.6 $
  + * $Date: 2002/02/25 23:51:24 $
    *
    * ====================================================================
    *
  @@ -80,7 +80,7 @@
    * test case (method) your {@link List} fails.
    *
    * @author Rodney Waldhoff
  - * @version $Id: TestList.java,v 1.5 2001/07/14 23:33:27 craigmcc Exp $
  + * @version $Id: TestList.java,v 1.6 2002/02/25 23:51:24 morgand Exp $
    */
   public abstract class TestList extends TestCollection {
       public TestList(String testName) {
  @@ -90,14 +90,14 @@
       /**
        * Return a new, empty {@link List} to used for testing.
        */
  -    public abstract List makeList();
  +    public abstract List makeEmptyList();
   
       public Collection makeCollection() {
  -        return makeList();
  +        return makeEmptyList();
       }
   
       public void testListAddByIndexBoundsChecking() {
  -        List list = makeList();
  +        List list = makeEmptyList();
   
           try {
               list.add(Integer.MIN_VALUE,"element");
  @@ -153,7 +153,7 @@
       }
   
       public void testListAddByIndexBoundsChecking2() {
  -        List list = makeList();
  +        List list = makeEmptyList();
           boolean added = tryToAdd(list,"element");
   
           try {
  @@ -184,7 +184,7 @@
       }
   
       public void testListAddByIndex() {
  -        List list = makeList();
  +        List list = makeEmptyList();
           assertEquals(0,list.size());
           if(tryToAdd(list,0,"element2")) {
               assertEquals(1,list.size());
  @@ -201,7 +201,7 @@
       }
   
       public void testListAdd() {
  -        List list = makeList();
  +        List list = makeEmptyList();
           if(tryToAdd(list,"1")) {
               assertTrue(list.contains("1"));
               if(tryToAdd(list,"2")) {
  @@ -223,7 +223,7 @@
       }
   
       public void testListEqualsSelf() {
  -        List list = makeList();
  +        List list = makeEmptyList();
           assertTrue(list.equals(list));
           tryToAdd(list,"elt");
           assertTrue(list.equals(list));
  @@ -232,7 +232,7 @@
       }
   
       public void testListEqualsArrayList() {
  -        List list1 = makeList();
  +        List list1 = makeEmptyList();
           List list2 = new ArrayList();
           assertTrue(list1.equals(list2));
           assertEquals(list1.hashCode(),list2.hashCode());
  @@ -252,8 +252,8 @@
       }
   
       public void testListEquals() {
  -        List list1 = makeList();
  -        List list2 = makeList();
  +        List list1 = makeEmptyList();
  +        List list2 = makeEmptyList();
           assertTrue(list1.equals(list2));
           if(tryToAdd(list1,"a") && tryToAdd(list2,"a")) {
               assertTrue(list1.equals(list2));
  @@ -270,7 +270,7 @@
       }
   
       public void testListGetByIndex() {
  -        List list = makeList();
  +        List list = makeEmptyList();
           tryToAdd(list,"a");
           tryToAdd(list,"b");
           tryToAdd(list,"c");
  @@ -284,7 +284,7 @@
       }
   
       public void testListGetByIndexBoundsChecking() {
  -        List list = makeList();
  +        List list = makeEmptyList();
   
           try {
               list.get(Integer.MIN_VALUE);
  @@ -323,7 +323,7 @@
       }
   
       public void testListGetByIndexBoundsChecking2() {
  -        List list = makeList();
  +        List list = makeEmptyList();
           boolean added = tryToAdd(list,"a");
   
           try {
  @@ -356,7 +356,7 @@
       }
   
       public void testListIndexOf() {
  -        List list = makeList();
  +        List list = makeEmptyList();
           tryToAdd(list,"a");
           tryToAdd(list,"b");
           tryToAdd(list,"c");
  @@ -371,7 +371,7 @@
       }
   
       public void testListLastIndexOf1() {
  -        List list = makeList();
  +        List list = makeEmptyList();
           tryToAdd(list,"a");
           tryToAdd(list,"b");
           tryToAdd(list,"c");
  @@ -386,7 +386,7 @@
       }
   
       public void testListLastIndexOf2() {
  -        List list = makeList();
  +        List list = makeEmptyList();
           tryToAdd(list,"a");
           tryToAdd(list,"b");
           tryToAdd(list,"c");
  @@ -434,7 +434,7 @@
       }
   
       public void testListSetByIndexBoundsChecking() {
  -        List list = makeList();
  +        List list = makeEmptyList();
   
           try {
               list.set(Integer.MIN_VALUE,"a");
  @@ -503,7 +503,7 @@
       }
   
       public void testListSetByIndexBoundsChecking2() {
  -        List list = makeList();
  +        List list = makeEmptyList();
           tryToAdd(list,"element");
           tryToAdd(list,"element2");
   
  @@ -561,7 +561,7 @@
       }
   
       public void testListSetByIndex() {
  -        List list = makeList();
  +        List list = makeEmptyList();
           tryToAdd(list,"element");
           tryToAdd(list,"element2");
           tryToAdd(list,"element3");
  @@ -586,7 +586,7 @@
       }
   
       public void testListRemoveByIndex() {
  -        List list = makeList();
  +        List list = makeEmptyList();
           tryToAdd(list,"element");
           tryToAdd(list,"element2");
           tryToAdd(list,"element3");
  @@ -615,7 +615,7 @@
       }
   
       public void testListRemoveByValue() {
  -        List list = makeList();
  +        List list = makeEmptyList();
           tryToAdd(list,"element1");
           tryToAdd(list,"element2");
           tryToAdd(list,"element3");
  @@ -637,7 +637,7 @@
       }
   
       public void testListListIteratorNextPrev() {
  -        List list = makeList();
  +        List list = makeEmptyList();
           tryToAdd(list,"element1");
           tryToAdd(list,"element2");
           tryToAdd(list,"element3");
  @@ -667,7 +667,7 @@
       }
   
       public void testListListIteratorNextIndexPrevIndex() {
  -        List list = makeList();
  +        List list = makeEmptyList();
           tryToAdd(list,"element1");
           tryToAdd(list,"element2");
           tryToAdd(list,"element3");
  @@ -689,7 +689,7 @@
       }
   
       public void testListListIteratorSet() {
  -        List list = makeList();
  +        List list = makeEmptyList();
           tryToAdd(list,"element1");
           tryToAdd(list,"element2");
           tryToAdd(list,"element3");
  
  
  

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


Mime
View raw message