org.apache.commons.collections.list
Class AbstractTestList.TestListIterator

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.collections.BulkTest
              extended by org.apache.commons.collections.AbstractTestObject
                  extended by org.apache.commons.collections.iterators.AbstractTestIterator
                      extended by org.apache.commons.collections.iterators.AbstractTestListIterator
                          extended by org.apache.commons.collections.list.AbstractTestList.TestListIterator
All Implemented Interfaces:
java.lang.Cloneable, junit.framework.Test
Enclosing class:
AbstractTestList

public class AbstractTestList.TestListIterator
extends AbstractTestListIterator


Field Summary
 
Fields inherited from class org.apache.commons.collections.AbstractTestObject
COLLECTIONS_MAJOR_VERSION
 
Constructor Summary
AbstractTestList.TestListIterator()
           
 
Method Summary
 java.lang.Object addSetValue()
          The value to be used in the add and set tests.
 java.util.ListIterator makeEmptyListIterator()
          Implement this method to return a list iterator over an empty collection.
 java.util.ListIterator makeFullListIterator()
          Implement this method to return a list iterator over a collection with elements.
 boolean supportsAdd()
          Whether or not we are testing an iterator that supports add().
 boolean supportsRemove()
          Whether or not we are testing an iterator that supports remove().
 boolean supportsSet()
          Whether or not we are testing an iterator that supports set().
 
Methods inherited from class org.apache.commons.collections.iterators.AbstractTestListIterator
makeEmptyIterator, makeFullIterator, testAdd, testAddThenRemove, testAddThenSet, testEmptyListIteratorIsIndeedEmpty, testRemoveThenSet, testSet, testWalkForwardAndBack
 
Methods inherited from class org.apache.commons.collections.iterators.AbstractTestIterator
makeObject, supportsEmptyIterator, supportsFullIterator, testEmptyIterator, testFullIterator, testRemove, verify
 
Methods inherited from class org.apache.commons.collections.AbstractTestObject
getCanonicalEmptyCollectionName, getCanonicalFullCollectionName, getCompatibilityVersion, isEqualsCheckable, isTestSerialization, readExternalFormFromBytes, readExternalFormFromDisk, skipSerializedCanonicalTests, supportsEmptyCollections, supportsFullCollections, testCanonicalEmptyCollectionExists, testCanonicalFullCollectionExists, testEqualsNull, testObjectEqualsSelf, testObjectHashCodeEqualsContract, testObjectHashCodeEqualsSelfHashCode, testSerializeDeserializeThenCompare, testSimpleSerialization, writeExternalFormToBytes, writeExternalFormToDisk
 
Methods inherited from class org.apache.commons.collections.BulkTest
clone, ignoredTests, makeSuite, toString
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractTestList.TestListIterator

public AbstractTestList.TestListIterator()
Method Detail

addSetValue

public java.lang.Object addSetValue()
Description copied from class: AbstractTestListIterator
The value to be used in the add and set tests. Default is null.

Overrides:
addSetValue in class AbstractTestListIterator

supportsRemove

public boolean supportsRemove()
Description copied from class: AbstractTestIterator
Whether or not we are testing an iterator that supports remove(). Default is true.

Overrides:
supportsRemove in class AbstractTestIterator
Returns:
true if Iterator supports remove

supportsAdd

public boolean supportsAdd()
Description copied from class: AbstractTestListIterator
Whether or not we are testing an iterator that supports add(). Default is true.

Overrides:
supportsAdd in class AbstractTestListIterator
Returns:
true if Iterator supports add

supportsSet

public boolean supportsSet()
Description copied from class: AbstractTestListIterator
Whether or not we are testing an iterator that supports set(). Default is true.

Overrides:
supportsSet in class AbstractTestListIterator
Returns:
true if Iterator supports set

makeEmptyListIterator

public java.util.ListIterator makeEmptyListIterator()
Description copied from class: AbstractTestListIterator
Implement this method to return a list iterator over an empty collection.

Specified by:
makeEmptyListIterator in class AbstractTestListIterator
Returns:
an empty iterator

makeFullListIterator

public java.util.ListIterator makeFullListIterator()
Description copied from class: AbstractTestListIterator
Implement this method to return a list iterator over a collection with elements.

Specified by:
makeFullListIterator in class AbstractTestListIterator
Returns:
a full iterator


Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.