Interface SequencedCollectionContract<E,C extends SequencedCollection<E>>
- Type Parameters:
E
- The element type being tested.sC
- The collection type being tested.
- All Superinterfaces:
AddAllContract<E,
,C> AddContract<E,
,C> AddFirstContract<E,
,C> AddLastContract<E,
,C> ClearContract<E,
,C> CollectionContract<E,
,C> CollectionContractConfig
,CollectionContractSupport<E,
,C> CollectionProviderSupport<E,
,C> ContainsAllContract<E,
,C> ContainsContract<E,
,C> ContractSupport<C>
,ElementProviderSupport<E>
,EqualsContract<C>
,ForEachContract<E,
,C> GetFirstContract<E,
,C> GetLastContract<E,
,C> HashCodeContract<C>
,IsEmptyContract<E,
,C> IterableContract<E,
,C> IteratorContract<E,
,C> ObjectContract<C>
,ProviderSupport<C>
,RemoveAllContract<E,
,C> RemoveContract<E,
,C> RemoveFirstContract<E,
,C> RemoveIfContract<E,
,C> RemoveLastContract<E,
,C> RetainAllContract<E,
,C> ReversedContract<E,
,C> SizeContract<E,
,C> SpliteratorContract<E,
,C> StreamContract<E,
,C> SupportedMethods
,ToArrayContract<E,
,C> ToStringContract<C>
- All Known Subinterfaces:
ListContract<E,
L>
public interface SequencedCollectionContract<E,C extends SequencedCollection<E>>
extends CollectionContract<E,C>, AddFirstContract<E,C>, AddLastContract<E,C>, GetFirstContract<E,C>, GetLastContract<E,C>, RemoveFirstContract<E,C>, RemoveLastContract<E,C>, ReversedContract<E,C>
Test suite for classes that implement the
SequencedCollection
interface.- Since:
- 1.0
- Author:
- evanbergstrom
- See Also:
-
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, testAdd, 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.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.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.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.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
testToArray, testToArrayIsSafe, testToArrayOnEmptyCollection, testToArrayStore, testToArrayStoreOnEmptyCollection, testToArrayStoreThrowsOnNullArray
Methods inherited from interface org.soliscode.test.contract.object.ToStringContract
testToStringForDifferentValues, testToStringForEqualValues, testToStringIsConsistent, testToStringOverridden
-
Method Details
-
doesNotSupportModification
default void doesNotSupportModification()This method can be called when testing collection classes that do not permit modification.- Specified by:
doesNotSupportModification
in interfaceCollectionContract<E,
C extends SequencedCollection<E>>
-