atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating / ListAssertionsBuilder

ListAssertionsBuilder

object ListAssertionsBuilder (source)

Delegates inter alia to the implementation of ListAssertions. In detail, it implements ListAssertions by delegating to listAssertions which in turn delegates to the implementation via loadSingleService.

Functions

get

fun <E, T : List<E>> get(expect: <ERROR CLASS><T>, index: Int): <ERROR CLASS>
fun <T : Any> get(plant: <ERROR CLASS><List<T>>, index: Int): <ERROR CLASS><T>
fun <T : Any> get(plant: <ERROR CLASS><List<T>>, index: Int, assertionCreator: <ERROR CLASS><T>.() -> Unit): <ERROR CLASS>

getNullable

fun <T> getNullable(plant: <ERROR CLASS><List<T>>, index: Int): <ERROR CLASS><T>
fun <T> getNullable(plant: <ERROR CLASS><List<T>>, index: Int, assertionCreator: <ERROR CLASS><T>.() -> Unit): <ERROR CLASS>

Extension Functions

asExpect

fun <T, A> A.asExpect(): <ERROR CLASS><T>
fun <T : Any, A> A.asExpect(assertionCreator: <ERROR CLASS><T>.() -> Unit): A

Turns Assert or AssertionPlantNullable into an Expect so that you can use new functionality which is not available on Assert/AssertionPlantNullable.