Interface SetTests.AddAllTests<T>

    • Method Detail

      • addElementsToExpected

        default void addElementsToExpected​(List<T> expected,
                                           Collection<? extends T> elements)
        Adds multiple elements to a list of expected elements. If IterableTests.fixedOrder() returns true, it may be necessary to override this method to ensure the expected elements remain in the correct fixed order.

        Note that you don't need to worry about duplicates, that will be taken care of.

        Parameters:
        expected - The existing expected elements.
        elements - The elements to add.
      • testAddAllWithNullCollection

        @Test
        @DisplayName("addAll(Collection) with a null collection")
        default void testAddAllWithNullCollection()
      • testAddAllWithCollectionWithNull

        @Test
        @DisplayName("addAll(Collection) with a collection with a null")
        default void testAddAllWithCollectionWithNull​(TestInfo testInfo)