Add method to indicate that iterator doesn't support remove.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@130888 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4ca0da456a
commit
a84170e095
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/TestFilterIterator.java,v 1.3 2002/11/01 19:07:54 rwaldhoff Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/TestFilterIterator.java,v 1.4 2002/12/13 12:03:06 scolebourne Exp $
|
||||||
* $Revision: 1.3 $
|
* $Revision: 1.4 $
|
||||||
* $Date: 2002/11/01 19:07:54 $
|
* $Date: 2002/12/13 12:03:06 $
|
||||||
*
|
*
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
|
@ -128,6 +128,11 @@ public class TestFilterIterator extends TestIterator {
|
||||||
return makeFullIterator();
|
return makeFullIterator();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean supportsRemove() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public void testRepeatedHasNext() {
|
public void testRepeatedHasNext() {
|
||||||
for (int i = 0; i <= array.length; i++) {
|
for (int i = 0; i <= array.length; i++) {
|
||||||
assertTrue(iterator.hasNext());
|
assertTrue(iterator.hasNext());
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/TestSingletonIterator.java,v 1.1 2002/08/15 23:13:52 pjack Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/TestSingletonIterator.java,v 1.2 2002/12/13 12:03:05 scolebourne Exp $
|
||||||
* $Revision: 1.1 $
|
* $Revision: 1.2 $
|
||||||
* $Date: 2002/08/15 23:13:52 $
|
* $Date: 2002/12/13 12:03:05 $
|
||||||
*
|
*
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
|
@ -70,7 +70,7 @@ import java.util.NoSuchElementException;
|
||||||
* perform the iteration rather than the hasNext() method.
|
* perform the iteration rather than the hasNext() method.
|
||||||
*
|
*
|
||||||
* @author James Strachan
|
* @author James Strachan
|
||||||
* @version $Id: TestSingletonIterator.java,v 1.1 2002/08/15 23:13:52 pjack Exp $
|
* @version $Id: TestSingletonIterator.java,v 1.2 2002/12/13 12:03:05 scolebourne Exp $
|
||||||
*/
|
*/
|
||||||
public class TestSingletonIterator extends TestIterator {
|
public class TestSingletonIterator extends TestIterator {
|
||||||
|
|
||||||
|
@ -105,6 +105,11 @@ public class TestSingletonIterator extends TestIterator {
|
||||||
return makeFullIterator();
|
return makeFullIterator();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean supportsRemove() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether or not we are testing an iterator that can be
|
* Whether or not we are testing an iterator that can be
|
||||||
* empty. SingletonIterators are never empty;
|
* empty. SingletonIterators are never empty;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/TestSingletonListIterator.java,v 1.1 2002/08/17 11:39:16 scolebourne Exp $
|
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/TestSingletonListIterator.java,v 1.2 2002/12/13 12:03:05 scolebourne Exp $
|
||||||
* $Revision: 1.1 $
|
* $Revision: 1.2 $
|
||||||
* $Date: 2002/08/17 11:39:16 $
|
* $Date: 2002/12/13 12:03:05 $
|
||||||
*
|
*
|
||||||
* ====================================================================
|
* ====================================================================
|
||||||
*
|
*
|
||||||
|
@ -70,7 +70,7 @@ import java.util.NoSuchElementException;
|
||||||
* Tests the SingletonListIterator.
|
* Tests the SingletonListIterator.
|
||||||
*
|
*
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
* @version $Id: TestSingletonListIterator.java,v 1.1 2002/08/17 11:39:16 scolebourne Exp $
|
* @version $Id: TestSingletonListIterator.java,v 1.2 2002/12/13 12:03:05 scolebourne Exp $
|
||||||
*/
|
*/
|
||||||
public class TestSingletonListIterator extends TestIterator {
|
public class TestSingletonListIterator extends TestIterator {
|
||||||
|
|
||||||
|
@ -105,6 +105,10 @@ public class TestSingletonListIterator extends TestIterator {
|
||||||
return makeFullIterator();
|
return makeFullIterator();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean supportsRemove() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether or not we are testing an iterator that can be
|
* Whether or not we are testing an iterator that can be
|
||||||
* empty. SingletonIterators are never empty;
|
* empty. SingletonIterators are never empty;
|
||||||
|
|
Loading…
Reference in New Issue