atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating / CollectionAssertionsBuilder

CollectionAssertionsBuilder

object CollectionAssertionsBuilder (source)

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

Functions

hasSize

fun hasSize(plant: <ERROR CLASS><Collection<*>>, size: Int): <ERROR CLASS>

isEmpty

fun isEmpty(subjectProvider: <ERROR CLASS><Collection<*>>): <ERROR CLASS>

isNotEmpty

fun isNotEmpty(subjectProvider: <ERROR CLASS><Collection<*>>): <ERROR CLASS>

size

fun <T : Collection<*>> size(expect: <ERROR CLASS><T>): <ERROR CLASS>
fun size(plant: <ERROR CLASS><Collection<*>>, assertionCreator: <ERROR CLASS><Int>.() -> Unit): <ERROR CLASS>

Extension Functions

asExpect

fun <T, A> A.asExpect(): <ERROR CLASS><T>
fun <T : Any, A> A.asExpect(assertionCreator: <ERROR CLASS><T>.() -> Unit): A

Turns Assert or AssertionPlantNullable into an Expect so that you can use new functionality which is not available on Assert/AssertionPlantNullable.