Interface AddAllContract<E,C extends Collection<E>>
- Type Parameters:
E
- The element type being tested.C
- The collection type being tested.
- All Superinterfaces:
CollectionContractConfig
,CollectionContractSupport<E,
,C> CollectionProviderSupport<E,
,C> ContractSupport<C>
,ElementProviderSupport<E>
,ProviderSupport<C>
,SupportedMethods
- All Known Subinterfaces:
CollectionContract<E,
,C> ListContract<E,
,L> SequencedCollectionContract<E,
C>
This interface tests if a collection class has implemented the
addAll()
method correctly. This is a "mix-in"
interface that is added to a test class.- Since:
- 1.0.0
- Author:
- evanbergstrom
- See Also:
-
Field Summary
Fields inherited from interface org.soliscode.test.contract.support.CollectionContractSupport
DEFAULT_SIZE
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Tests that theaddAll()
method works.default void
Tests that theaddAll()
method handles duplicate values correctly.default void
Tests that theaddAll()
method handles null values correctly.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
-
Method Details
-
testAddAllToContainer
@Test default void testAddAllToContainer()Tests that theaddAll()
method works. -
testAddAllWithNullValue
@Test default void testAddAllWithNullValue()Tests that theaddAll()
method handles null values correctly. -
testAddAllWithDuplicateValue
@Test default void testAddAllWithDuplicateValue()Tests that theaddAll()
method handles duplicate values correctly.
-