T
- The element type of the iterable to test.public interface IterableTests<T>
Iterable
functionalities.Modifier and Type | Interface and Description |
---|---|
static interface |
IterableTests.ForEachTests<T>
Contains tests for
Iterable.forEach(Consumer) . |
Modifier and Type | Method and Description |
---|---|
Collection<T> |
expectedElements()
Returns the expected elements contained by the iterable to test.
|
boolean |
fixedOrder()
Returns whether or not the iterable to test has a fixed order.
|
Iterable<T> |
iterable()
Returns the iterable to test.
|
Iterable<T> iterable()
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.
Collection<T> expectedElements()
ArrayList
or
HashSet
.boolean fixedOrder()
true
if the iterable to test has a fixed order, or false
if the order is unspecified.Copyright © 2020–2023. All rights reserved.