Save This Page
Home » commons-collections-3.2.1-src » org.apache.commons » collections » iterators » [javadoc | source]
org.apache.commons.collections.iterators
abstract public class: AbstractTestIterator [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.apache.commons.collections.BulkTest
         org.apache.commons.collections.AbstractTestObject
            org.apache.commons.collections.iterators.AbstractTestIterator

All Implemented Interfaces:
    Cloneable

Direct Known Subclasses:
    TestIntIterator, TestObjectArrayListIterator2, TestIteratorCharIterator, TestListIteratorFloatListIterator, TestUnmodifiableIterator, TestDoubleIteratorIterator, TestIteratorFloatIterator, TestSingletonIterator2, TestIteratorByteIterator, TestShortListIteratorListIterator, AbstractTestOrderedMapIterator, TestShortIteratorIterator, TestFloatListIterator, TestUnmodifiableMapIterator, InnerTestMapIterator, TestListIteratorShortListIterator, TestUnmodifiableOrderedMapIterator, TestByteIteratorIterator, TestIntListIteratorListIterator, TestListIteratorDoubleListIterator, TestCharListIterator, TestCharListIteratorListIterator, TestFloatListIteratorListIterator, AbstractTestMapIterator, TestLongIterator, TestIntListIterator, TestBidiOrderedMapIterator, TestIntIteratorIterator, TestFlatMapIterator, TestShortListIterator, TestDoubleListIterator, AbstractTestListIterator, TestIteratorIntIterator, TestObjectArrayIterator, TestCharIteratorIterator, TestShortIterator, TestListIteratorCharListIterator, TestObjectArrayListIterator, TestDoubleIterator, TestBidiMapIterator, TestLongIteratorIterator, TestCharIterator, TestReaderCharIterator, TestByteIterator, TestInputStreamByteIterator, TestListIteratorIntListIterator, TestListIteratorByteListIterator, TestFloatIteratorIterator, TestLongListIterator, TestFloatIterator, TestListIterator, TestUnmodifiableListIterator, TestListIteratorLongListIterator, TestIteratorShortIterator, TestIteratorLongIterator, InnerTestOrderedMapIterator, TestIteratorDoubleIterator, TestLongListIteratorListIterator, TestDoubleListIteratorListIterator, TestByteListIteratorListIterator, TestObjectGraphIterator, TestByteListIterator

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.

Fields inherited from org.apache.commons.collections.AbstractTestObject:
COLLECTIONS_MAJOR_VERSION
Fields inherited from org.apache.commons.collections.BulkTest:
verboseName
Constructor:
 public AbstractTestIterator(String testName) 
    JUnit constructor.
    Parameters:
    testName - the test class name
Method from org.apache.commons.collections.iterators.AbstractTestIterator Summary:
makeEmptyIterator,   makeFullIterator,   makeObject,   supportsEmptyIterator,   supportsFullIterator,   supportsRemove,   testEmptyIterator,   testFullIterator,   testRemove,   verify
Methods from org.apache.commons.collections.AbstractTestObject:
getCanonicalEmptyCollectionName,   getCanonicalFullCollectionName,   getCompatibilityVersion,   isEqualsCheckable,   isTestSerialization,   makeObject,   readExternalFormFromBytes,   readExternalFormFromDisk,   skipSerializedCanonicalTests,   supportsEmptyCollections,   supportsFullCollections,   testCanonicalEmptyCollectionExists,   testCanonicalFullCollectionExists,   testEqualsNull,   testObjectEqualsSelf,   testObjectHashCodeEqualsContract,   testObjectHashCodeEqualsSelfHashCode,   testSerializeDeserializeThenCompare,   testSimpleSerialization,   writeExternalFormToBytes,   writeExternalFormToDisk
Methods from org.apache.commons.collections.BulkTest:
clone,   ignoredSimpleTests,   makeSuite,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.collections.iterators.AbstractTestIterator Detail:
 abstract public Iterator makeEmptyIterator()
    Implement this method to return an iterator over an empty collection.
 abstract public Iterator makeFullIterator()
    Implement this method to return an iterator over a collection with elements.
 public Object makeObject() 
    Implements the abstract superclass method to return the full iterator.
 public boolean supportsEmptyIterator() 
    Whether or not we are testing an iterator that can be empty. Default is true.
 public boolean supportsFullIterator() 
    Whether or not we are testing an iterator that can contain elements. Default is true.
 public boolean supportsRemove() 
    Whether or not we are testing an iterator that supports remove(). Default is true.
 public  void testEmptyIterator() 
    Test the empty iterator.
 public  void testFullIterator() 
    Test normal iteration behaviour.
 public  void testRemove() 
    Test remove behaviour.
 public  void verify() 
    Allows subclasses to add complex cross verification