doc / ch.tutteli.atrium.api.cc.infix.en_GB.creating.map.get.builders / MapGetNullableOption

MapGetNullableOption

interface MapGetNullableOption<K, V, T : Map<out K, V>>
Deprecated: Switch from api-cc-infix-en_GB to api-infix-en_GB; will be removed with 1.0.0 -- see https://github.com/robstoll/atrium/releases/tag/v0.12.0#migration for migration hints and scripts.

Represents the extension point for another option after a get key-step within a sophisticated get assertion building process for Map.

Parameters

K - The key type of the Map.

V - the value type of the Map.

T - A subtype of Map.

Properties

key

abstract val key: K

The given key which will be used to perform the Map.get.

plant

abstract val plant: Assert<T>

The AssertionPlant for which this assertion is created

Functions

assertIt

abstract infix fun assertIt(assertionCreator: AssertionPlantNullable<V>.() -> Unit): Assert<T>

Makes the assertion that the Assert.subject contains the previously specified key and that the corresponding nullable value holds all assertions the given assertionCreator might create for it.

Companion Object Functions

create

fun <K, V, T : Map<out K, V>> create(plant: Assert<T>, key: K): MapGetNullableOption<K, V, T>