Interface ContainsContract<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 ContainsContract<E,C extends Collection<E>> extends CollectionContractSupport<E,C>
This interface tests if a collection class has implemented the contains() method correctly.
Since:
1.0
Author:
evanbergstrom
See Also:
  • Method Details

    • testContainsOnEmptyCollection

      @Test default void testContainsOnEmptyCollection()
      Tests that the contains() method works for an empty collection.
    • testContainsOnCollectionWithElements

      @Test default void testContainsOnCollectionWithElements()
      Tests that the size() method works for a collection with elements.
    • testContainsOnCollectionWithNulls

      @Test default void testContainsOnCollectionWithNulls()
      Tests that the contains() method works for a collection with null elements.
    • testContainsWithIncompatibleType

      @Test default void testContainsWithIncompatibleType()
      Tests that the contains() method works with incompatible types.