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

PairAssertions

interface PairAssertions (source)

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

Functions

first

abstract fun <K : Any> first(plant: AssertionPlant<<ERROR CLASS><K, out <ERROR CLASS>>>, assertionCreator: AssertionPlant<K>.() -> Unit): Assertion

nullableFirst

abstract fun <K> nullableFirst(plant: AssertionPlant<<ERROR CLASS><K, out <ERROR CLASS>>>, assertionCreator: AssertionPlantNullable<K>.() -> Unit): Assertion

nullableSecond

abstract fun <V> nullableSecond(plant: AssertionPlant<<ERROR CLASS><out <ERROR CLASS>, V>>, assertionCreator: AssertionPlantNullable<V>.() -> Unit): Assertion

second

abstract fun <V : Any> second(plant: AssertionPlant<<ERROR CLASS><out <ERROR CLASS>, V>>, assertionCreator: AssertionPlant<V>.() -> Unit): Assertion

Inheritors

PairAssertionsBuilder

object PairAssertionsBuilder : PairAssertions

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.