Interface SpliteratorTests<T>

    • Method Detail

      • iterable

        Iterable<T> iterable()
        Returns an iterable that returns spliterators 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.

        Returns:
        An iterable that returns spliterators to test.
      • expectedElements

        Collection<T> expectedElements()
        Returns the expected elements returned by the iterator to test.
        Returns:
        The expected elements returned by the iterator to test.
      • fixedOrder

        boolean fixedOrder()
        Returns whether or not the iterator to test has a fixed order.
        Returns:
        true if the iterator to test has a fixed order, or false if the order is unspecified.