atrium-api-infix-en_GB-jvm / ch.tutteli.atrium.api.infix.en_GB.creating.list.get.builders / ListGetStep / assertIt

assertIt

abstract infix fun assertIt(assertionCreator: Expect<E>.() -> Unit): Expect<T> (source)

Makes the assertion that the given index is within the bounds of Expect.subject and that the corresponding entry holds all assertions the given assertionCreator might create for it.

Exceptions

AssertionError - Might throw an AssertionError if a created Expects (by calling assertionCreator) does not hold.

IllegalArgumentException - in case the given assertionCreator did not create a single assertion.

Return
This Expect to support a fluent API.