Class AbstractTestList.TestListIterator
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.apache.commons.collections.BulkTest
-
- org.apache.commons.collections.AbstractTestObject
-
- org.apache.commons.collections.iterators.AbstractTestIterator
-
- org.apache.commons.collections.iterators.AbstractTestListIterator
-
- 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
Constructors Constructor Description TestListIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown
-
-
-
-
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 classAbstractTestListIterator
-
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 classAbstractTestIterator
- 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 classAbstractTestListIterator
- 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 classAbstractTestListIterator
- 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 classAbstractTestListIterator
- 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 classAbstractTestListIterator
- Returns:
- a full iterator
-
-