doc / ch.tutteli.atrium.domain.creating / ListAssertions

ListAssertions

interface ListAssertions (source)

Defines the minimum set of assertion functions and builders applicable to List, which an implementation of the domain of Atrium has to provide.

Functions

get

abstract fun <E, T : List<E>> get(expect: Expect<T>, index: Int): ExtractedFeaturePostStep<T, E>
abstract fun <T : Any> get(plant: AssertionPlant<List<T>>, index: Int): AssertionPlant<T>
abstract fun <T : Any> get(plant: AssertionPlant<List<T>>, index: Int, assertionCreator: AssertionPlant<T>.() -> Unit): Assertion

getNullable

abstract fun <T> getNullable(plant: AssertionPlant<List<T>>, index: Int): AssertionPlantNullable<T>
abstract fun <T> getNullable(plant: AssertionPlant<List<T>>, index: Int, assertionCreator: AssertionPlantNullable<T>.() -> Unit): Assertion

Inheritors

ListAssertionsBuilder

object ListAssertionsBuilder : ListAssertions

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.