T
- The element type of the collection to test.public interface CollectionTests<T> extends IterableTests<T>
Collection
functionalities.IterableTests.ForEachTests<T>
Modifier and Type | Method and Description |
---|---|
Collection<T> |
iterable()
Returns the iterable to test.
|
Collection<T> |
nonContainedElements()
Returns some elements that should not be contained by the collection to test.
|
expectedElements, fixedOrder
Collection<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 IterableTests<T>
Collection<T> nonContainedElements()
Copyright © 2020–2023. All rights reserved.