doc / ch.tutteli.atrium.domain.builders.creating / MapAssertionsBuilder

MapAssertionsBuilder

object MapAssertionsBuilder : MapAssertions

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

Properties

entry

val entry: MapEntryAssertionsBuilder

Returns MapEntryAssertionsBuilder which inter alia delegates to the implementation of MapEntryAssertions.

Functions

contains

fun <K, V, T : Map<out K, V>> contains(expect: Expect<T>, keyValuePairs: List<Pair<K, V>>): Assertion
fun <K, V> contains(plant: AssertionPlant<Map<out K, V>>, keyValuePairs: List<Pair<K, V>>): Assertion

containsKey

fun <K> containsKey(subjectProvider: SubjectProvider<Map<out K, *>>, key: K): Assertion

containsKeyWithValueAssertions

fun <K, V : Any, T : Map<out K, V?>> containsKeyWithValueAssertions(expect: Expect<T>, valueType: KClass<V>, keyValues: List<Pair<K, (Expect<V>.() -> Unit)?>>): Assertion
fun <K, V : Any> containsKeyWithValueAssertions(plant: AssertionPlant<Map<out K, V?>>, keyValues: List<Pair<K, (Assert<V>.() -> Unit)?>>): Assertion

containsNotKey

fun <K> containsNotKey(subjectProvider: SubjectProvider<Map<out K, *>>, key: K): Assertion

getExisting

fun <K, V, T : Map<out K, V>> getExisting(expect: Expect<T>, key: K): ExtractedFeaturePostStep<T, V>
fun <K, V : Any> getExisting(plant: AssertionPlant<Map<out K, V>>, key: K): AssertionPlant<V>
fun <K, V : Any> getExisting(plant: AssertionPlant<Map<out K, V>>, key: K, assertionCreator: AssertionPlant<V>.() -> Unit): Assertion

getExistingNullable

fun <K, V> getExistingNullable(plant: AssertionPlant<Map<out K, V>>, key: K): AssertionPlantNullable<V>
fun <K, V> getExistingNullable(plant: AssertionPlant<Map<out K, V>>, key: K, assertionCreator: AssertionPlantNullable<V>.() -> Unit): Assertion

hasSize

fun hasSize(plant: AssertionPlant<Map<*, *>>, size: Int): Assertion

isEmpty

fun isEmpty(subjectProvider: SubjectProvider<Map<*, *>>): Assertion

isNotEmpty

fun isNotEmpty(subjectProvider: SubjectProvider<Map<*, *>>): Assertion

keys

fun <K> keys(plant: AssertionPlant<Map<out K, *>>, assertionCreator: AssertionPlant<Set<K>>.() -> Unit): Assertion

size

fun <T : Map<*, *>> size(expect: Expect<T>): ExtractedFeaturePostStep<T, Int>

values

fun <V> values(plant: AssertionPlant<Map<*, V>>, assertionCreator: AssertionPlant<Collection<V>>.() -> Unit): Assertion