Interface EnumerationTests.IterationTests<T>
-
- Type Parameters:
T
- The element type of the enumeration to test.
- All Superinterfaces:
EnumerationTests<T>
- Enclosing interface:
- EnumerationTests<T>
@DisplayName("iteration") public static interface EnumerationTests.IterationTests<T> extends EnumerationTests<T>
Contains tests forEnumeration.hasMoreElements()
andEnumeration.nextElement()
.- Author:
- Rob Spoor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.robtimus.junit.support.test.collections.EnumerationTests
EnumerationTests.AsIteratorTests<T>, EnumerationTests.IterationTests<T>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
testIteration()
Tests iteration usingEnumeration.hasMoreElements()
andEnumeration.nextElement()
.default void
testNextElementWithoutHasMoreElements()
Tests callingEnumeration.nextElement()
withoutEnumeration.hasMoreElements()
.-
Methods inherited from interface com.github.robtimus.junit.support.test.collections.EnumerationTests
enumeration, expectedElements, fixedOrder
-
-
-
-
Method Detail
-
testIteration
@Test @DisplayName("iteration") default void testIteration()
Tests iteration usingEnumeration.hasMoreElements()
andEnumeration.nextElement()
.
-
testNextElementWithoutHasMoreElements
@Test @DisplayName("nextElement() without hasMoreElements()") default void testNextElementWithoutHasMoreElements()
Tests callingEnumeration.nextElement()
withoutEnumeration.hasMoreElements()
. It callsEnumeration.nextElement()
once for each element inEnumerationTests.expectedElements()
.
-
-