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

IterableAssertionsBuilder

object IterableAssertionsBuilder (source)

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

Properties

contains

val contains: IterableContainsAssertionsBuilder

Returns IterableContainsAssertionsBuilder which inter alia delegates to the implementation of IterableContainsAssertions.

Functions

all

fun <E : Any, T : Iterable<E?>> all(expect: <ERROR CLASS><T>, assertionCreator: (<ERROR CLASS><E>.() -> Unit)?): <ERROR CLASS>
fun <E : Any> all(plant: <ERROR CLASS><Iterable<E?>>, assertionCreator: (<ERROR CLASS><E>.() -> Unit)?): <ERROR CLASS>

containsBuilder

fun <E, T : Iterable<E>> containsBuilder(subjectProvider: <ERROR CLASS><T>): <ERROR CLASS>

containsNotBuilder

fun <E, T : Iterable<E>> containsNotBuilder(subjectProvider: <ERROR CLASS><T>): <ERROR CLASS>

hasNext

fun <E, T : Iterable<E>> hasNext(expect: <ERROR CLASS><T>): <ERROR CLASS>

hasNotNext

fun <E, T : Iterable<E>> hasNotNext(expect: <ERROR CLASS><T>): <ERROR CLASS>

max

fun <E : Comparable<E>, T : Iterable<E>> max(expect: <ERROR CLASS><T>): <ERROR CLASS>

min

fun <E : Comparable<E>, T : Iterable<E>> min(expect: <ERROR CLASS><T>): <ERROR CLASS><T, E>

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.