fun <E : Any, T : Iterable<E>> Assert<T>.any(assertionCreator: Assert<E>.() -> Unit): AssertionPlant<T>
(source)
Makes the assertion that AssertionPlant.subject contains an entry holding the assertions created by the assertionCreator.
It is a shortcut for contains.inAnyOrder.atLeast(1).entry(assertionCreator, *otherAssertionCreators)
AssertionError
- Might throw an AssertionError if the assertion made is not correct.
Return
This plant to support a fluent API.