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>

public interface AddAllContract<E,C extends Collection<E>> extends CollectionContractSupport<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:
  • Method Details

    • testAddAllToContainer

      @Test default void testAddAllToContainer()
      Tests that the addAll() method works.
    • testAddAllWithNullValue

      @Test default void testAddAllWithNullValue()
      Tests that the addAll() method handles null values correctly.
    • testAddAllWithDuplicateValue

      @Test default void testAddAllWithDuplicateValue()
      Tests that the addAll() method handles duplicate values correctly.