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

PairAssertionsBuilder

object PairAssertionsBuilder (source)

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

Functions

first

fun <K, T : Pair<K, *>> first(expect: <ERROR CLASS><T>): <ERROR CLASS>
fun <K : Any> first(plant: <ERROR CLASS><Pair<K, *>>, assertionCreator: <ERROR CLASS><K>.() -> Unit): <ERROR CLASS>

nullableFirst

fun <K> nullableFirst(plant: <ERROR CLASS><Pair<K, *>>, assertionCreator: <ERROR CLASS><K>.() -> Unit): <ERROR CLASS>

nullableSecond

fun <V> nullableSecond(plant: <ERROR CLASS><Pair<*, V>>, assertionCreator: <ERROR CLASS><V>.() -> Unit): <ERROR CLASS>

second

fun <V, T : Pair<*, V>> second(expect: <ERROR CLASS><T>): <ERROR CLASS>
fun <V : Any> second(plant: <ERROR CLASS><Pair<*, V>>, assertionCreator: <ERROR CLASS><V>.() -> 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.