commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwaldh...@apache.org
Subject cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections/iterators TestListIterator.java
Date Sun, 13 Apr 2003 23:26:09 GMT
rwaldhoff    2003/04/13 16:26:09

  Modified:    collections/src/test/org/apache/commons/collections/primitives/adapters
                        TestShortListIteratorListIterator.java
                        TestLongListIteratorListIterator.java
                        TestIntListIteratorListIterator.java
                        TestFloatListIteratorListIterator.java
  Added:       collections/src/test/org/apache/commons/collections/iterators
                        TestListIterator.java
  Log:
  add TestListIterator placeholder
  
  Revision  Changes    Path
  1.2       +7 -7      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/adapters/TestShortListIteratorListIterator.java
  
  Index: TestShortListIteratorListIterator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/adapters/TestShortListIteratorListIterator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestShortListIteratorListIterator.java	11 Apr 2003 00:55:36 -0000	1.1
  +++ TestShortListIteratorListIterator.java	13 Apr 2003 23:26:09 -0000	1.2
  @@ -58,21 +58,21 @@
   package org.apache.commons.collections.primitives.adapters;
   
   import java.util.Iterator;
  +import java.util.ListIterator;
   import java.util.NoSuchElementException;
   
   import junit.framework.Test;
   import junit.framework.TestSuite;
   
  -import org.apache.commons.collections.iterators.TestIterator;
  +import org.apache.commons.collections.iterators.TestListIterator;
   import org.apache.commons.collections.primitives.ArrayShortList;
   import org.apache.commons.collections.primitives.ShortList;
   
   /**
  - * @TODO should extend TestListIterator when there is one
    * @version $Revision$ $Date$
    * @author Rodney Waldhoff
    */
  -public class TestShortListIteratorListIterator extends TestIterator {
  +public class TestShortListIteratorListIterator extends TestListIterator {
   
       // conventional
       // ------------------------------------------------------------------------
  @@ -92,11 +92,11 @@
           return makeFullIterator();
       }
       
  -    public Iterator makeEmptyIterator() {
  +    public ListIterator makeEmptyListIterator() {
           return ShortListIteratorListIterator.wrap(makeEmptyShortList().listIterator());
       }
       
  -    public Iterator makeFullIterator() {
  +    public ListIterator makeFullListIterator() {
           return ShortListIteratorListIterator.wrap(makeFullShortList().listIterator());
       }
   
  
  
  
  1.2       +7 -7      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/adapters/TestLongListIteratorListIterator.java
  
  Index: TestLongListIteratorListIterator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/adapters/TestLongListIteratorListIterator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestLongListIteratorListIterator.java	8 Apr 2003 18:24:35 -0000	1.1
  +++ TestLongListIteratorListIterator.java	13 Apr 2003 23:26:09 -0000	1.2
  @@ -58,21 +58,21 @@
   package org.apache.commons.collections.primitives.adapters;
   
   import java.util.Iterator;
  +import java.util.ListIterator;
   import java.util.NoSuchElementException;
   
   import junit.framework.Test;
   import junit.framework.TestSuite;
   
  -import org.apache.commons.collections.iterators.TestIterator;
  +import org.apache.commons.collections.iterators.TestListIterator;
   import org.apache.commons.collections.primitives.ArrayLongList;
   import org.apache.commons.collections.primitives.LongList;
   
   /**
  - * @TODO should extend TestListIterator when there is one
    * @version $Revision$ $Date$
    * @author Rodney Waldhoff
    */
  -public class TestLongListIteratorListIterator extends TestIterator {
  +public class TestLongListIteratorListIterator extends TestListIterator {
   
       // conventional
       // ------------------------------------------------------------------------
  @@ -92,11 +92,11 @@
           return makeFullIterator();
       }
       
  -    public Iterator makeEmptyIterator() {
  +    public ListIterator makeEmptyListIterator() {
           return LongListIteratorListIterator.wrap(makeEmptyLongList().listIterator());
       }
       
  -    public Iterator makeFullIterator() {
  +    public ListIterator makeFullListIterator() {
           return LongListIteratorListIterator.wrap(makeFullLongList().listIterator());
       }
   
  
  
  
  1.4       +7 -7      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/adapters/TestIntListIteratorListIterator.java
  
  Index: TestIntListIteratorListIterator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/adapters/TestIntListIteratorListIterator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestIntListIteratorListIterator.java	5 Mar 2003 19:10:51 -0000	1.3
  +++ TestIntListIteratorListIterator.java	13 Apr 2003 23:26:09 -0000	1.4
  @@ -58,21 +58,21 @@
   package org.apache.commons.collections.primitives.adapters;
   
   import java.util.Iterator;
  +import java.util.ListIterator;
   import java.util.NoSuchElementException;
   
   import junit.framework.Test;
   import junit.framework.TestSuite;
   
  -import org.apache.commons.collections.iterators.TestIterator;
  +import org.apache.commons.collections.iterators.TestListIterator;
   import org.apache.commons.collections.primitives.ArrayIntList;
   import org.apache.commons.collections.primitives.IntList;
   
   /**
  - * @TODO should extend TestListIterator when there is one
    * @version $Revision$ $Date$
    * @author Rodney Waldhoff
    */
  -public class TestIntListIteratorListIterator extends TestIterator {
  +public class TestIntListIteratorListIterator extends TestListIterator {
   
       // conventional
       // ------------------------------------------------------------------------
  @@ -92,11 +92,11 @@
           return makeFullIterator();
       }
       
  -    public Iterator makeEmptyIterator() {
  +    public ListIterator makeEmptyListIterator() {
           return IntListIteratorListIterator.wrap(makeEmptyIntList().listIterator());
       }
       
  -    public Iterator makeFullIterator() {
  +    public ListIterator makeFullListIterator() {
           return IntListIteratorListIterator.wrap(makeFullIntList().listIterator());
       }
   
  
  
  
  1.2       +7 -7      jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/adapters/TestFloatListIteratorListIterator.java
  
  Index: TestFloatListIteratorListIterator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/primitives/adapters/TestFloatListIteratorListIterator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestFloatListIteratorListIterator.java	13 Apr 2003 22:08:07 -0000	1.1
  +++ TestFloatListIteratorListIterator.java	13 Apr 2003 23:26:09 -0000	1.2
  @@ -58,21 +58,21 @@
   package org.apache.commons.collections.primitives.adapters;
   
   import java.util.Iterator;
  +import java.util.ListIterator;
   import java.util.NoSuchElementException;
   
   import junit.framework.Test;
   import junit.framework.TestSuite;
   
  -import org.apache.commons.collections.iterators.TestIterator;
  +import org.apache.commons.collections.iterators.TestListIterator;
   import org.apache.commons.collections.primitives.ArrayFloatList;
   import org.apache.commons.collections.primitives.FloatList;
   
   /**
  - * @TODO should extend TestListIterator when there is one
    * @version $Revision$ $Date$
    * @author Rodney Waldhoff
    */
  -public class TestFloatListIteratorListIterator extends TestIterator {
  +public class TestFloatListIteratorListIterator extends TestListIterator {
   
       // conventional
       // ------------------------------------------------------------------------
  @@ -92,11 +92,11 @@
           return makeFullIterator();
       }
       
  -    public Iterator makeEmptyIterator() {
  +    public ListIterator makeEmptyListIterator() {
           return FloatListIteratorListIterator.wrap(makeEmptyFloatList().listIterator());
       }
       
  -    public Iterator makeFullIterator() {
  +    public ListIterator makeFullListIterator() {
           return FloatListIteratorListIterator.wrap(makeFullFloatList().listIterator());
       }
   
  
  
  
  1.1                  jakarta-commons/collections/src/test/org/apache/commons/collections/iterators/TestListIterator.java
  
  Index: TestListIterator.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collections/iterators/TestListIterator.java,v
1.1 2003/04/13 23:26:09 rwaldhoff Exp $
   * $Revision: 1.1 $
   * $Date: 2003/04/13 23:26:09 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Commons", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   */
  package org.apache.commons.collections.iterators;
  
  import java.util.Iterator;
  import java.util.ListIterator;
  /**
   * @TODO implement me
   * (Having this type around, even without specific tests, consolidates
   * a bunch of "to dos" of the form "this should extend TestListIterator once
   * it exists (see subclasses).
   */
  public abstract class TestListIterator extends TestIterator {
  
      public TestListIterator(String testName) {
          super(testName);
      }
  
      public abstract ListIterator makeEmptyListIterator();
  
      public abstract ListIterator makeFullListIterator();
  
      public Iterator makeEmptyIterator() {
          return makeEmptyListIterator();
      }
  
      public Iterator makeFullIterator() {
          return makeFullListIterator();
      }
  
  }
  
  
  

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


Mime
View raw message