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:
Cloneable
,junit.framework.Test
- Enclosing class:
AbstractTestList
-
Field Summary
Fields inherited from class org.apache.commons.collections.AbstractTestObject
COLLECTIONS_MAJOR_VERSION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe value to be used in the add and set tests.Implement this method to return a list iterator over an empty collection.Implement this method to return a list iterator over a collection with elements.boolean
Whether or not we are testing an iterator that supports add().boolean
Whether or not we are testing an iterator that supports remove().boolean
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
-
Constructor Details
-
TestListIterator
public TestListIterator()
-
-
Method Details
-
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
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
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
-