add TestListIterator placeholder
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131009 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f2328ed4c0
commit
969a6804c1
|
@ -0,0 +1,89 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/Attic/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();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestFloatListIteratorListIterator.java,v 1.1 2003/04/13 22:08:07 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestFloatListIteratorListIterator.java,v 1.2 2003/04/13 23:26:09 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -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: 1.1 $ $Date: 2003/04/13 22:08:07 $
|
||||
* @version $Revision: 1.2 $ $Date: 2003/04/13 23:26:09 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestFloatListIteratorListIterator extends TestIterator {
|
||||
public class TestFloatListIteratorListIterator extends TestListIterator {
|
||||
|
||||
// conventional
|
||||
// ------------------------------------------------------------------------
|
||||
|
@ -92,11 +92,11 @@ public class TestFloatListIteratorListIterator extends TestIterator {
|
|||
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,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestIntListIteratorListIterator.java,v 1.3 2003/03/05 19:10:51 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestIntListIteratorListIterator.java,v 1.4 2003/04/13 23:26:09 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -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: 1.3 $ $Date: 2003/03/05 19:10:51 $
|
||||
* @version $Revision: 1.4 $ $Date: 2003/04/13 23:26:09 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestIntListIteratorListIterator extends TestIterator {
|
||||
public class TestIntListIteratorListIterator extends TestListIterator {
|
||||
|
||||
// conventional
|
||||
// ------------------------------------------------------------------------
|
||||
|
@ -92,11 +92,11 @@ public class TestIntListIteratorListIterator extends TestIterator {
|
|||
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,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestLongListIteratorListIterator.java,v 1.1 2003/04/08 18:24:35 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestLongListIteratorListIterator.java,v 1.2 2003/04/13 23:26:09 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -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: 1.1 $ $Date: 2003/04/08 18:24:35 $
|
||||
* @version $Revision: 1.2 $ $Date: 2003/04/13 23:26:09 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestLongListIteratorListIterator extends TestIterator {
|
||||
public class TestLongListIteratorListIterator extends TestListIterator {
|
||||
|
||||
// conventional
|
||||
// ------------------------------------------------------------------------
|
||||
|
@ -92,11 +92,11 @@ public class TestLongListIteratorListIterator extends TestIterator {
|
|||
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,5 +1,5 @@
|
|||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestShortListIteratorListIterator.java,v 1.1 2003/04/11 00:55:36 rwaldhoff Exp $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestShortListIteratorListIterator.java,v 1.2 2003/04/13 23:26:09 rwaldhoff Exp $
|
||||
* ====================================================================
|
||||
* The Apache Software License, Version 1.1
|
||||
*
|
||||
|
@ -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: 1.1 $ $Date: 2003/04/11 00:55:36 $
|
||||
* @version $Revision: 1.2 $ $Date: 2003/04/13 23:26:09 $
|
||||
* @author Rodney Waldhoff
|
||||
*/
|
||||
public class TestShortListIteratorListIterator extends TestIterator {
|
||||
public class TestShortListIteratorListIterator extends TestListIterator {
|
||||
|
||||
// conventional
|
||||
// ------------------------------------------------------------------------
|
||||
|
@ -92,11 +92,11 @@ public class TestShortListIteratorListIterator extends TestIterator {
|
|||
return makeFullIterator();
|
||||
}
|
||||
|
||||
public Iterator makeEmptyIterator() {
|
||||
public ListIterator makeEmptyListIterator() {
|
||||
return ShortListIteratorListIterator.wrap(makeEmptyShortList().listIterator());
|
||||
}
|
||||
|
||||
public Iterator makeFullIterator() {
|
||||
public ListIterator makeFullListIterator() {
|
||||
return ShortListIteratorListIterator.wrap(makeFullShortList().listIterator());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue