Interface EnumerationTests<T>

    • Method Detail

      • enumeration

        Enumeration<T> enumeration()
        Returns the enumeration to test.

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

        Returns:
        The enumeration to test.
      • expectedElements

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

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