Interface ListContract<E,L extends List<E>>
- Type Parameters:
E
- The type of the elements.L
- The type of the list.
- All Superinterfaces:
AddAllContract<E,
,L> AddAtPositionContract<E,
,L> AddContract<E,
,L> AddFirstContract<E,
,L> AddLastContract<E,
,L> ClearContract<E,
,L> CollectionContract<E,
,L> CollectionContractConfig
,CollectionContractSupport<E,
,L> CollectionProviderSupport<E,
,L> ContainsAllContract<E,
,L> ContainsContract<E,
,L> ContractSupport<L>
,ElementProviderSupport<E>
,EqualsContract<L>
,ForEachContract<E,
,L> GetContract<E,
,L> GetFirstContract<E,
,L> GetLastContract<E,
,L> HashCodeContract<L>
,IndexOfContract<E,
,L> IsEmptyContract<E,
,L> IterableContract<E,
,L> IteratorContract<E,
,L> LastIndexOfContract<E,
,L> ListAddContract<E,
,L> ListToArrayContract<E,
,L> ObjectContract<L>
,ProviderSupport<L>
,RemoveAllContract<E,
,L> RemoveAtPositionContract<E,
,L> RemoveContract<E,
,L> RemoveFirstContract<E,
,L> RemoveIfContract<E,
,L> RemoveLastContract<E,
,L> ReplaceAllContract<E,
,L> RetainAllContract<E,
,L> ReversedContract<E,
,L> SequencedCollectionContract<E,
,L> SetContract<E,
,L> SizeContract<E,
,L> SortContract<E,
,L> SpliteratorContract<E,
,L> StreamContract<E,
,L> SubListContract<E,
,L> SupportedMethods
,ToArrayContract<E,
,L> ToStringContract<L>
public interface ListContract<E,L extends List<E>>
extends SequencedCollectionContract<E,L>, ListAddContract<E,L>, ListToArrayContract<E,L>, GetContract<E,L>, SetContract<E,L>, IndexOfContract<E,L>, LastIndexOfContract<E,L>, AddAtPositionContract<E,L>, RemoveAtPositionContract<E,L>, ReplaceAllContract<E,L>, SortContract<E,L>, SubListContract<E,L>
Test suite for classes that implement the
List
interface. When implementing this class, the only method that will
need to be implemented is ProviderSupport.provider()
.- Since:
- 1.0
- Author:
- evanbergstrom
-
Field Summary
Fields inherited from interface org.soliscode.test.contract.support.CollectionContractSupport
DEFAULT_SIZE
Fields inherited from interface org.soliscode.test.contract.iterable.SpliteratorContract
CHARACTERISTIC_VALUES
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
This method can be called when testing collection classes that do not permit modification.Methods inherited from interface org.soliscode.test.contract.collection.AddAllContract
testAddAllToContainer, testAddAllWithDuplicateValue, testAddAllWithNullValue
Methods inherited from interface org.soliscode.test.contract.collection.AddContract
addWithDuplicateValue, testAddWithNullValue
Methods inherited from interface org.soliscode.test.contract.sequenced.AddFirstContract
addFirstWithDuplicateValue, testAddFirst, testAddFirstWithNullValue
Methods inherited from interface org.soliscode.test.contract.sequenced.AddLastContract
addLastWithDuplicateValue, testAddLast, testAddLastWithNullValue
Methods inherited from interface org.soliscode.test.contract.collection.ClearContract
testClearOnCollectionWithElements, testClearOnEmptyCollection
Methods inherited from interface org.soliscode.test.contract.collection.CollectionContract
doesNotSupportMethod, supportsMethod
Methods inherited from interface org.soliscode.test.contract.CollectionContractConfig
permitDuplicates, permitIncompatibleTypes, permitNulls
Methods inherited from interface org.soliscode.test.contract.support.CollectionProviderSupport
provider
Methods inherited from interface org.soliscode.test.contract.collection.ContainsAllContract
testContainsAllOnCollectionWithElements, testContainsAllOnCollectionWithNulls, testContainsAllOnEmptyCollection, testContainsAllWithIncompatibleType
Methods inherited from interface org.soliscode.test.contract.collection.ContainsContract
testContainsOnCollectionWithElements, testContainsOnCollectionWithNulls, testContainsOnEmptyCollection, testContainsWithIncompatibleType
Methods inherited from interface org.soliscode.test.contract.support.ElementProviderSupport
elementProvider
Methods inherited from interface org.soliscode.test.contract.object.EqualsContract
testEqualsForNullValue, testEqualsIsConsistent, testEqualsIsReflexive, testEqualsIsSymmetric, testEqualsIsTransitive
Methods inherited from interface org.soliscode.test.contract.iterable.ForEachContract
testForEachForEmptyCollection, testForEachWithNullAction, testForeEachOverCollectionWithElements
Methods inherited from interface org.soliscode.test.contract.list.GetContract
testGet, testGetThrowsForInvalidIndex, testGetWithEmptyCollection
Methods inherited from interface org.soliscode.test.contract.sequenced.GetFirstContract
testGetFirst, testGetFirstOnEmptyCollection
Methods inherited from interface org.soliscode.test.contract.sequenced.GetLastContract
testGetLast, testGetLastOnEmptyCollection
Methods inherited from interface org.soliscode.test.contract.object.HashCodeContract
testHashCodeDistribution, testHashCodeIsStable, testHashCodeWithEqualValues, testHashDifferentValues
Methods inherited from interface org.soliscode.test.contract.list.IndexOfContract
testIndexOf, testIndexOfWithEmptyCollection, testIndexOfWithIncompatibleType, testIndexOfWithNullValue
Methods inherited from interface org.soliscode.test.contract.collection.IsEmptyContract
testIsEmptyForEmptyCollection, testIsEmptyForNonEmptyCollection
Methods inherited from interface org.soliscode.test.contract.iterable.IteratorContract
testForEachRemainingForNullAction, testForEachRemainingOverEntireCollection, testForEachRemainingOverPartialCollection, testIteratorOverCollectionWithElements, testIteratorOverEmptyCollection, testIteratorRemove, testIteratorRemoveThrowsOnIllegalState
Methods inherited from interface org.soliscode.test.contract.list.ListAddContract
testAdd
Methods inherited from interface org.soliscode.test.contract.list.ListToArrayContract
testToArray, testToArrayIsSafe
Methods inherited from interface org.soliscode.test.contract.collection.RemoveAllContract
testRemoveAllOnContainerWithElements, testRemoveAllOnEmptyContainer, testRemoveAllOnIncompatibleObject, testRemoveAllOnNullElement, testRemoveAllThrowsOnNullCollection
Methods inherited from interface org.soliscode.test.contract.collection.RemoveContract
testRemoveOnContainerWithElements, testRemoveOnContainerWithNulls, testRemoveOnEmptyContainer, testRemoveOnIncompatibleObject
Methods inherited from interface org.soliscode.test.contract.sequenced.RemoveFirstContract
testRemoveFirst, testRemoveFirstOnEmptyCollection
Methods inherited from interface org.soliscode.test.contract.collection.RemoveIfContract
testRemoveIfOnContainerWithElements, testRemoveIfOnEmptyContainer, testRemoveIfThrowsOnANullFilter
Methods inherited from interface org.soliscode.test.contract.sequenced.RemoveLastContract
testRemoveLast, testRemoveLastOnEmptyCollection
Methods inherited from interface org.soliscode.test.contract.collection.RetainAllContract
testRetainAllOnContainerWithElements, testRetainAllOnEmptyContainer, testRetainAllOnIncompatibleObject, testRetainAllThrowsOnNullCollection
Methods inherited from interface org.soliscode.test.contract.sequenced.ReversedContract
testReversed
Methods inherited from interface org.soliscode.test.contract.list.SetContract
testSet, testSetThrowsForInvalidIndex, testSetWithEmptyCollection, testSetWithNullElement
Methods inherited from interface org.soliscode.test.contract.collection.SizeContract
testSizeOnCollectionWithElements, testSizeOnEmptyCollection
Methods inherited from interface org.soliscode.test.contract.iterable.SpliteratorContract
testHasCharacteristic, testSpliteratorEstimateSizeOnACollectionWithElements, testSpliteratorEstimateSizeOnAnEmptyCollection, testSpliteratorForEachRemainingOnACollectionWithElements, testSpliteratorForEachRemainingOnAnEmptyCollection, testSpliteratorGetExactSizeIfKnownOnACollectionWithElements, testSpliteratorGetExactSizeIfKnownOnAnEmptyCollection, testSpliteratorTryAdvanceOnACollectionWithElements, testSpliteratorTryAdvanceOnAnEmptyCollection, testSpliteratorTrySplitOnACollectionWithElements, testSpliteratorTrySplitOnAnEmptyCollection
Methods inherited from interface org.soliscode.test.contract.collection.StreamContract
testParallelStreamForCollectionWithElements, testParallelStreamForEmptyCollection, testStreamForCollectionWithElements, testStreamForEmptyCollection
Methods inherited from interface org.soliscode.test.contract.collection.ToArrayContract
testToArrayOnEmptyCollection, testToArrayStore, testToArrayStoreOnEmptyCollection, testToArrayStoreThrowsOnNullArray
Methods inherited from interface org.soliscode.test.contract.object.ToStringContract
testToStringForDifferentValues, testToStringForEqualValues, testToStringIsConsistent, testToStringOverridden
-
Method Details
-
doesNotSupportModification
default void doesNotSupportModification()Description copied from interface:SequencedCollectionContract
This method can be called when testing collection classes that do not permit modification.- Specified by:
doesNotSupportModification
in interfaceCollectionContract<E,
L extends List<E>> - Specified by:
doesNotSupportModification
in interfaceSequencedCollectionContract<E,
L extends List<E>>
-