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.booleanWhether or not we are testing an iterator that supports add().booleanWhether or not we are testing an iterator that supports remove().booleanWhether 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, testWalkForwardAndBackMethods inherited from class org.apache.commons.collections.iterators.AbstractTestIterator
makeObject, supportsEmptyIterator, supportsFullIterator, testEmptyIterator, testFullIterator, testRemove, verifyMethods 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, writeExternalFormToDiskMethods inherited from class org.apache.commons.collections.BulkTest
clone, ignoredTests, makeSuite, toStringMethods 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:AbstractTestListIteratorThe value to be used in the add and set tests. Default is null.- Overrides:
addSetValuein classAbstractTestListIterator
-
supportsRemove
public boolean supportsRemove()Description copied from class:AbstractTestIteratorWhether or not we are testing an iterator that supports remove(). Default is true.- Overrides:
supportsRemovein classAbstractTestIterator- Returns:
- true if Iterator supports remove
-
supportsAdd
public boolean supportsAdd()Description copied from class:AbstractTestListIteratorWhether or not we are testing an iterator that supports add(). Default is true.- Overrides:
supportsAddin classAbstractTestListIterator- Returns:
- true if Iterator supports add
-
supportsSet
public boolean supportsSet()Description copied from class:AbstractTestListIteratorWhether or not we are testing an iterator that supports set(). Default is true.- Overrides:
supportsSetin classAbstractTestListIterator- Returns:
- true if Iterator supports set
-
makeEmptyListIterator
Description copied from class:AbstractTestListIteratorImplement this method to return a list iterator over an empty collection.- Specified by:
makeEmptyListIteratorin classAbstractTestListIterator- Returns:
- an empty iterator
-
makeFullListIterator
Description copied from class:AbstractTestListIteratorImplement this method to return a list iterator over a collection with elements.- Specified by:
makeFullListIteratorin classAbstractTestListIterator- Returns:
- a full iterator
-