Interface ContainsAllContract<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>
public interface ContainsAllContract<E,C extends Collection<E>>
extends CollectionContractSupport<E,C>
This interface tests if a collection class has implemented the
containsAll()
method
correctly.- Since:
- 1.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 thecontainsAll()
method works for a collection with elements.default void
Tests that thecontainsAll()
method works for a collection with null elements.default void
Tests that thecontainsAll()
method works for an empty collection.default void
Tests that thecontainsAll()
method works with incompatible types.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
-
testContainsAllOnEmptyCollection
@Test default void testContainsAllOnEmptyCollection()Tests that thecontainsAll()
method works for an empty collection. -
testContainsAllOnCollectionWithElements
@Test default void testContainsAllOnCollectionWithElements()Tests that thecontainsAll()
method works for a collection with elements. -
testContainsAllOnCollectionWithNulls
@Test default void testContainsAllOnCollectionWithNulls()Tests that thecontainsAll()
method works for a collection with null elements. -
testContainsAllWithIncompatibleType
@Test default void testContainsAllWithIncompatibleType()Tests that thecontainsAll()
method works with incompatible types.
-