| |
|
| org.apache.commons.collections.TestObject org.apache.commons.collections.TestIterator
All known Subclasses: org.apache.commons.collections.AbstractTestListIterator,
TestIterator | abstract public class TestIterator extends TestObject (Code) | | Base class for tetsing Iterator interface
author: Morgan Delagrange |
supportsEmptyIterator | public boolean supportsEmptyIterator()(Code) | | Whether or not we are testing an iterator that can be
empty. Default is true.
true if Iterators can be empty |
supportsFullIterator | public boolean supportsFullIterator()(Code) | | Whether or not we are testing an iterator that can contain
elements. Default is true.
true if Iterators can be empty |
supportsRemove | public boolean supportsRemove()(Code) | | Whether or not we are testing an iterator that supports remove.
Default is true.
true if Iterators can remove elements |
testEmptyIterator | public void testEmptyIterator()(Code) | | Should throw a NoSuchElementException.
|
testFullIterator | public void testFullIterator()(Code) | | NoSuchElementException (or any other exception)
should not be thrown for the first element.
NoSuchElementException must be thrown when
hasNext() returns false
|
Fields inherited from org.apache.commons.collections.TestObject | final public static int COLLECTIONS_MAJOR_VERSION(Code)(Java Doc)
|
|
|
|