T
- The element type of the list to test.public interface ListTests<T> extends CollectionTests<T>
List
functionalities.CollectionTests.ClearTests<T>, CollectionTests.ContainsAllTests<T>, CollectionTests.ContainsTests<T>, CollectionTests.RemoveAllArgumentsProvider, CollectionTests.RemoveAllTests<T>, CollectionTests.RemoveArgumentsProvider, CollectionTests.RemoveIfTests<T>, CollectionTests.RemoveTests<T>, CollectionTests.RetainAllArgumentsProvider, CollectionTests.RetainAllTests<T>, CollectionTests.ToArrayTests<T>, CollectionTests.ToObjectArrayTests<T>
IterableTests.ForEachTests<T>
Modifier and Type | Method and Description |
---|---|
List<T> |
expectedElements()
Returns the expected elements contained by the iterable to test.
|
default boolean |
fixedOrder()
Returns whether or not the iterable to test has a fixed order.
|
List<T> |
iterable()
Returns the iterable to test.
|
nonContainedElements
List<T> iterable()
IterableTests
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 CollectionTests<T>
iterable
in interface IterableTests<T>
List<T> expectedElements()
IterableTests
ArrayList
or
HashSet
.expectedElements
in interface IterableTests<T>
default boolean fixedOrder()
true
.fixedOrder
in interface IterableTests<T>
true
if the iterable to test has a fixed order, or false
if the order is unspecified.Copyright © 2020–2023. All rights reserved.