Class AbstractTestList.BulkTestSubList
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.commons.collections.BulkTest
org.apache.commons.collections.AbstractTestObject
org.apache.commons.collections.collection.AbstractTestCollection
org.apache.commons.collections.list.AbstractTestList
org.apache.commons.collections.list.AbstractTestList.BulkTestSubList
- All Implemented Interfaces:
Cloneable,junit.framework.Test
- Enclosing class:
AbstractTestList
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.collections.list.AbstractTestList
AbstractTestList.BulkTestSubList, AbstractTestList.TestListIterator -
Field Summary
Fields inherited from class org.apache.commons.collections.collection.AbstractTestCollection
collection, confirmedFields inherited from class org.apache.commons.collections.AbstractTestObject
COLLECTIONS_MAJOR_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]Returns an array of objects that are contained in a collection produced byAbstractTestCollection.makeFullCollection().Object[]Returns an array of elements that are not contained in a full collection.booleanReturns true if the collections produced byAbstractTestCollection.makeCollection()andAbstractTestCollection.makeFullCollection()support theaddandaddAlloperations.booleanReturns true if the collections produced byAbstractTestCollection.makeCollection()andAbstractTestCollection.makeFullCollection()support theremove,removeAll,retainAll,clearanditerator().remove()methods.booleanReturns true if the collections produced byAbstractTestList.makeCollection()andAbstractTestList.makeFullCollection()support theset operation.booleanIs serialization testing supported.Return a new, emptyListto be used for testing.Return a new, fullListto be used for testing.voidResets theAbstractTestCollection.collectionandAbstractTestCollection.confirmedfields to empty collections.voidResets theAbstractTestCollection.collectionandAbstractTestCollection.confirmedfields to full collections.voidverify()Verifies that the test list implementation matches the confirmed list implementation.Methods inherited from class org.apache.commons.collections.list.AbstractTestList
bulkTestListIterator, bulkTestSubList, failFastAll, failFastMethod, getConfirmedList, getList, isEqualsCheckable, makeCollection, makeConfirmedCollection, makeConfirmedFullCollection, makeFullCollection, testEmptyListCompatibility, testEmptyListSerialization, testFullListCompatibility, testFullListSerialization, testListAddByIndex, testListAddByIndexBoundsChecking, testListAddByIndexBoundsChecking2, testListEquals, testListGetByIndex, testListGetByIndexBoundsChecking, testListGetByIndexBoundsChecking2, testListHashCode, testListIndexOf, testListIteratorAdd, testListIteratorSet, testListLastIndexOf, testListListIterator, testListListIteratorByIndex, testListListIteratorNextRemoveNext, testListListIteratorNextRemovePrevious, testListListIteratorPreviousRemoveNext, testListListIteratorPreviousRemovePrevious, testListRemoveByIndex, testListRemoveByIndexBoundsChecking, testListRemoveByIndexBoundsChecking2, testListSetByIndex, testListSetByIndexBoundsChecking, testListSetByIndexBoundsChecking2, testListSubListFailFastOnAdd, testListSubListFailFastOnRemove, testUnsupportedSetMethods inherited from class org.apache.commons.collections.collection.AbstractTestCollection
areEqualElementsDistinguishable, cloneMapEntry, getFullNonNullElements, getFullNonNullStringElements, getOtherNonNullElements, getOtherNonNullStringElements, isFailFastSupported, isNullSupported, makeObject, testCollectionAdd, testCollectionAddAll, testCollectionClear, testCollectionContains, testCollectionContainsAll, testCollectionIsEmpty, testCollectionIterator, testCollectionIteratorFailFast, testCollectionIteratorRemove, testCollectionRemove, testCollectionRemoveAll, testCollectionRetainAll, testCollectionSize, testCollectionToArray, testCollectionToArray2, testCollectionToString, testSerializeDeserializeThenCompare, testUnsupportedAdd, testUnsupportedRemoveMethods inherited from class org.apache.commons.collections.AbstractTestObject
getCanonicalEmptyCollectionName, getCanonicalFullCollectionName, getCompatibilityVersion, readExternalFormFromBytes, readExternalFormFromDisk, skipSerializedCanonicalTests, supportsEmptyCollections, supportsFullCollections, testCanonicalEmptyCollectionExists, testCanonicalFullCollectionExists, testEqualsNull, testObjectEqualsSelf, testObjectHashCodeEqualsContract, testObjectHashCodeEqualsSelfHashCode, 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
-
BulkTestSubList
-
-
Method Details
-
getFullElements
Description copied from class:AbstractTestCollectionReturns an array of objects that are contained in a collection produced byAbstractTestCollection.makeFullCollection(). Every element in the returned array must be an element in a full collection.The default implementation returns a heterogenous array of objects with some duplicates. null is added if allowed. Override if you require specific testing elements. Note that if you override
AbstractTestCollection.makeFullCollection(), you must override this method to reflect the contents of a full collection.- Overrides:
getFullElementsin classAbstractTestCollection
-
getOtherElements
Description copied from class:AbstractTestCollectionReturns an array of elements that are not contained in a full collection. Every element in the returned array must not exist in a collection returned byAbstractTestCollection.makeFullCollection(). The default implementation returns a heterogenous array of elements without null. Note that some of the tests add these elements to an empty or full collection, so if your collection restricts certain kinds of elements, you should override this method.- Overrides:
getOtherElementsin classAbstractTestCollection
-
isAddSupported
public boolean isAddSupported()Description copied from class:AbstractTestCollectionReturns true if the collections produced byAbstractTestCollection.makeCollection()andAbstractTestCollection.makeFullCollection()support theaddandaddAlloperations.Default implementation returns true. Override if your collection class does not support add or addAll.
- Overrides:
isAddSupportedin classAbstractTestCollection
-
isSetSupported
public boolean isSetSupported()Description copied from class:AbstractTestListReturns true if the collections produced byAbstractTestList.makeCollection()andAbstractTestList.makeFullCollection()support theset operation.Default implementation returns true. Override if your collection class does not support set.
- Overrides:
isSetSupportedin classAbstractTestList
-
isRemoveSupported
public boolean isRemoveSupported()Description copied from class:AbstractTestCollectionReturns true if the collections produced byAbstractTestCollection.makeCollection()andAbstractTestCollection.makeFullCollection()support theremove,removeAll,retainAll,clearanditerator().remove()methods. Default implementation returns true. Override if your collection class does not support removal operations.- Overrides:
isRemoveSupportedin classAbstractTestCollection
-
makeEmptyList
Description copied from class:AbstractTestListReturn a new, emptyListto be used for testing.- Specified by:
makeEmptyListin classAbstractTestList- Returns:
- an empty list for testing.
-
makeFullList
Description copied from class:AbstractTestListReturn a new, fullListto be used for testing.- Overrides:
makeFullListin classAbstractTestList- Returns:
- a full list for testing
-
resetEmpty
public void resetEmpty()Description copied from class:AbstractTestCollectionResets theAbstractTestCollection.collectionandAbstractTestCollection.confirmedfields to empty collections. Invoke this method before performing a modification test.- Overrides:
resetEmptyin classAbstractTestCollection
-
resetFull
public void resetFull()Description copied from class:AbstractTestCollectionResets theAbstractTestCollection.collectionandAbstractTestCollection.confirmedfields to full collections. Invoke this method before performing a modification test.- Overrides:
resetFullin classAbstractTestCollection
-
verify
public void verify()Description copied from class:AbstractTestListVerifies that the test list implementation matches the confirmed list implementation.- Overrides:
verifyin classAbstractTestList
-
isTestSerialization
public boolean isTestSerialization()Description copied from class:AbstractTestObjectIs serialization testing supported. Default is true.- Overrides:
isTestSerializationin classAbstractTestObject
-