| org.apache.commons.collections.AbstractTestObject org.apache.commons.collections.iterators.AbstractTestIterator
All known Subclasses: org.apache.commons.collections.iterators.TestObjectGraphIterator, org.apache.commons.collections.iterators.TestSingletonIterator2, org.apache.commons.collections.iterators.TestUniqueFilterIterator, org.apache.commons.collections.iterators.TestArrayIterator2, org.apache.commons.collections.iterators.TestObjectArrayIterator, org.apache.commons.collections.iterators.TestIteratorChain, org.apache.commons.collections.iterators.TestUnmodifiableIterator, org.apache.commons.collections.iterators.AbstractTestMapIterator, org.apache.commons.collections.iterators.TestSingletonIterator, org.apache.commons.collections.iterators.TestCollatingIterator, org.apache.commons.collections.iterators.TestListIteratorWrapper, org.apache.commons.collections.iterators.TestArrayIterator, org.apache.commons.collections.iterators.TestFilterIterator, org.apache.commons.collections.iterators.AbstractTestListIterator,
AbstractTestIterator | abstract public class AbstractTestIterator extends AbstractTestObject (Code) | | Abstract class for testing the Iterator interface.
This class provides a framework for testing an implementation of Iterator.
Concrete subclasses must provide the iterator to be tested.
They must also specify certain details of how the iterator operates by
overriding the supportsXxx() methods if necessary.
since: Commons Collections 3.0 version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $ author: Morgan Delagrange author: Stephen Colebourne |
AbstractTestIterator | public AbstractTestIterator(String testName)(Code) | | JUnit constructor.
Parameters: testName - the test class name |
makeEmptyIterator | abstract public Iterator makeEmptyIterator()(Code) | | Implement this method to return an iterator over an empty collection.
an empty iterator |
makeFullIterator | abstract public Iterator makeFullIterator()(Code) | | Implement this method to return an iterator over a collection with elements.
a full iterator |
makeObject | public Object makeObject()(Code) | | Implements the abstract superclass method to return the full iterator.
a full iterator |
supportsEmptyIterator | public boolean supportsEmptyIterator()(Code) | | Whether or not we are testing an iterator that can be empty.
Default is true.
true if Iterator 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 Iterator can be full |
supportsRemove | public boolean supportsRemove()(Code) | | Whether or not we are testing an iterator that supports remove().
Default is true.
true if Iterator supports remove |
testEmptyIterator | public void testEmptyIterator()(Code) | | Test the empty iterator.
|
testFullIterator | public void testFullIterator()(Code) | | Test normal iteration behaviour.
|
testRemove | public void testRemove()(Code) | | Test remove behaviour.
|
verify | public void verify()(Code) | | Allows subclasses to add complex cross verification
|
Fields inherited from org.apache.commons.collections.AbstractTestObject | final public static int COLLECTIONS_MAJOR_VERSION(Code)(Java Doc)
|
|
|