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

MapAssertions

interface MapAssertions (source)

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

Functions

hasSize

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

isEmpty

abstract fun <T : Map<*, *>> isEmpty(plant: AssertionPlant<T>): Assertion

isNotEmpty

abstract fun <T : Map<*, *>> isNotEmpty(plant: AssertionPlant<T>): Assertion

Inheritors

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 ServiceLoader.