Interface CollectionContractSupport<E,C extends Iterable<E>>
- Type Parameters:
E
- The element type being tested.C
- The collection type being tested.
- All Superinterfaces:
CollectionContractConfig
,CollectionProviderSupport<E,
,C> ContractSupport<C>
,ElementProviderSupport<E>
,ProviderSupport<C>
,SupportedMethods
- All Known Subinterfaces:
AddAllContract<E,
,C> AddAtPositionContract<E,
,L> AddContract<E,
,C> AddFirstContract<E,
,C> AddLastContract<E,
,C> ClearContract<E,
,C> CollectionContract<E,
,C> ContainsAllContract<E,
,C> ContainsContract<E,
,C> ForEachContract<E,
,I> GetContract<E,
,L> GetFirstContract<E,
,C> GetLastContract<E,
,C> IndexOfContract<E,
,L> IsEmptyContract<E,
,C> IterableContract<E,
,I> IteratorContract<E,
,I> LastIndexOfContract<E,
,L> ListAddContract<E,
,L> ListContract<E,
,L> ListToArrayContract<E,
,L> RemoveAllContract<E,
,C> RemoveAtPositionContract<E,
,L> RemoveContract<E,
,C> RemoveFirstContract<E,
,C> RemoveIfContract<E,
,C> RemoveLastContract<E,
,C> ReplaceAllContract<E,
,L> RetainAllContract<E,
,C> ReversedContract<E,
,C> SequencedCollectionContract<E,
,C> SetContract<E,
,L> SizeContract<E,
,C> SortContract<E,
,L> SpliteratorContract<E,
,I> StreamContract<E,
,C> SubListContract<E,
,L> ToArrayContract<E,
C>
public interface CollectionContractSupport<E,C extends Iterable<E>>
extends ContractSupport<C>, CollectionProviderSupport<E,C>, ElementProviderSupport<E>, CollectionContractConfig
The base interface for all classes that test
Collection
methods. It allows the contract class to create
collections and elements using the associated providers.- Since:
- 1.0
- Author:
- evanbergstrom
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The default number of elements (10) to use for a test. -
Method Summary
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.support.ElementProviderSupport
elementProvider
Methods inherited from interface org.soliscode.test.SupportedMethods
supportsMethod
-
Field Details
-
DEFAULT_SIZE
static final int DEFAULT_SIZEThe default number of elements (10) to use for a test.- See Also:
-