Class CollectionContractTest


@DisplayName("Tests for CollectionContract class") public class CollectionContractTest extends ContractTest<Integer,BreakableCollection<Integer>>
Tests for the CollectionContract class.
Since:
1.0
Author:
evanbergstrom
  • Constructor Details

    • CollectionContractTest

      public CollectionContractTest()
  • Method Details

    • createTest

      @NotNull protected @NotNull CollectionContractTest.DynamicBrokenCollectionContract createTest(@NotNull @NotNull Break b)
      Specified by:
      createTest in class ContractTest<Integer,BreakableCollection<Integer>>
    • dynamicTestsForAdd

      @TestFactory public Collection<org.junit.jupiter.api.DynamicTest> dynamicTestsForAdd()
      Test factory for tests of the add(Object) method that should fail for various breaks.
      Returns:
      a collection of dynamic tests of the add(Object) method.
    • dynamicTestsForAddAll

      @TestFactory public Collection<org.junit.jupiter.api.DynamicTest> dynamicTestsForAddAll()
      Test factory for tests of the addAll(Collection) method that should fail for various breaks.
      Returns:
      a collection of dynamic tests of the addAll(Collection) method.
    • dynamicTestsForClear

      @TestFactory public Collection<org.junit.jupiter.api.DynamicTest> dynamicTestsForClear()
      Test factory for tests of the clear() method that should fail for various breaks.
      Returns:
      a collection of dynamic tests of the clear() method.
    • dynamicTestsForContains

      @TestFactory public Collection<org.junit.jupiter.api.DynamicTest> dynamicTestsForContains()
      Test factory for tests of the contains(Object) method that should fail for various breaks.
      Returns:
      a collection of dynamic tests of the contains(Object) method.
    • dynamicTestsForContainsAll

      @TestFactory public Collection<org.junit.jupiter.api.DynamicTest> dynamicTestsForContainsAll()
      Test factory for tests of the contains(Object) method that should fail for various breaks.
      Returns:
      a collection of dynamic tests of the contains(Object) method.
    • dynamicTestsForIsEmpty

      @TestFactory public Collection<org.junit.jupiter.api.DynamicTest> dynamicTestsForIsEmpty()
      Test factory for tests of the isEmpty() method that should fail for various breaks.
      Returns:
      a collection of dynamic tests of the isEmpty() method.
    • dynamicTestsForRemove

      @TestFactory public Collection<org.junit.jupiter.api.DynamicTest> dynamicTestsForRemove()
      Test factory for tests of the remove(Object) method that should fail for various breaks.
      Returns:
      a collection of dynamic tests of the remove(Object) method.
    • dynamicTestsForRemoveAll

      @TestFactory @Disabled public Collection<org.junit.jupiter.api.DynamicTest> dynamicTestsForRemoveAll()
      Test factory for tests of the removeAll(Collection) method that should fail for various breaks.
      Returns:
      a collection of dynamic tests of the removeAll(Collection) method.
    • dynamicTestsForRemoveIf

      @TestFactory @Disabled public Collection<org.junit.jupiter.api.DynamicTest> dynamicTestsForRemoveIf()
      Test factory for tests of the removeIf() method that should fail for various breaks.
      Returns:
      a collection of dynamic tests of the removeIf() method.