doc / ch.tutteli.atrium.api.cc.de_CH / get

get

fun <E : Any, T : List<E>> Assert<T>.get(index: Int): Assert<E>
Deprecated: api-cc-de_CH is discontinued, switch to api-fluent-en_GB; will be removed with 1.0.0

Makes the assertion that the given index is within the bounds of Assert.subject, creates a feature assertion plant for the corresponding element and returns the newly created plant.

Exceptions

AssertionError - Might throw an AssertionError if the given index is out of bound.

Return
This plant to support a fluent API.

fun <E : Any, T : List<E>> Assert<T>.get(index: Int, assertionCreator: Assert<E>.() -> Unit): AssertionPlant<T>
Deprecated: api-cc-de_CH is discontinued, switch to api-fluent-en_GB; will be removed with 1.0.0

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

Exceptions

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

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

Return
This plant to support a fluent API.