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

PairAssertions

interface PairAssertions
Deprecated: Use PairAssertions from atrium-logic; will be removed with 1.0.0

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, T : Pair<K, *>> first(expect: Expect<T>): ExtractedFeaturePostStep<T, K>
abstract fun <K : Any> first(plant: AssertionPlant<Pair<K, *>>, assertionCreator: AssertionPlant<K>.() -> Unit): Assertion

nullableFirst

abstract fun <K> nullableFirst(plant: AssertionPlant<Pair<K, *>>, assertionCreator: AssertionPlantNullable<K>.() -> Unit): Assertion

nullableSecond

abstract fun <V> nullableSecond(plant: AssertionPlant<Pair<*, V>>, assertionCreator: AssertionPlantNullable<V>.() -> Unit): Assertion

second

abstract fun <V, T : Pair<*, V>> second(expect: Expect<T>): ExtractedFeaturePostStep<T, V>
abstract fun <V : Any> second(plant: AssertionPlant<Pair<*, 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.