Interface ListIteratorTests<T>

    • Method Detail

      • iterable

        List<T> iterable()
        Description copied from interface: IteratorTests
        Returns an iterable that returns iterators to test.

        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 IteratorTests<T>
        Returns:
        An iterable that returns iterators to test.
      • expectedElements

        List<T> expectedElements()
        Description copied from interface: IteratorTests
        Returns the expected elements returned by the iterator to test.
        Specified by:
        expectedElements in interface IteratorTests<T>
        Returns:
        The expected elements returned by the iterator to test.
      • fixedOrder

        default boolean fixedOrder()
        Returns whether or not the iterator to test has a fixed order. Always returns true.
        Specified by:
        fixedOrder in interface IteratorTests<T>
        Returns:
        true if the iterator to test has a fixed order, or false if the order is unspecified.