Interface CollectionTests<T>

    • Method Detail

      • iterable

        Collection<T> iterable()
        Description copied from interface: IterableTests
        Returns the iterable to test. This should be populated, i.e. not empty, unless the iterable can only be empty.

        This method will be called only once for each test. This makes it possible to initialize the iterable in a method annotated with BeforeEach, and perform additional tests after the pre-defined test has finished.

        Specified by:
        iterable in interface IterableTests<T>
        Returns:
        The iterable to test.
      • nonContainedElements

        Collection<T> nonContainedElements()
        Returns some elements that should not be contained by the collection to test.
        Returns:
        A collection with elements that should not be contained by the collection to test.