T
- The element type of the list iterator to test.public interface ListIteratorTests<T> extends IteratorTests<T>
ListIterator
functionalities.Modifier and Type | Interface and Description |
---|---|
static interface |
ListIteratorTests.AddTests<T>
Contains tests for
ListIterator.add(Object) . |
static interface |
ListIteratorTests.IterationTests<T>
|
static interface |
ListIteratorTests.RemoveTests<T>
Contains tests for
ListIterator.remove() . |
static interface |
ListIteratorTests.SetTests<T>
Contains tests for
ListIterator.set(Object) . |
IteratorTests.ForEachRemainingTests<T>
Modifier and Type | Method and Description |
---|---|
List<T> |
expectedElements()
Returns the expected elements returned by the iterator to test.
|
default boolean |
fixedOrder()
Returns whether or not the iterator to test has a fixed order.
|
List<T> |
iterable()
Returns an iterable that returns iterators to test.
|
List<T> iterable()
IteratorTests
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.
iterable
in interface IteratorTests<T>
List<T> expectedElements()
IteratorTests
expectedElements
in interface IteratorTests<T>
default boolean fixedOrder()
true
.fixedOrder
in interface IteratorTests<T>
true
if the iterator to test has a fixed order, or false
if the order is unspecified.Copyright © 2020–2023. All rights reserved.