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

CollectionAssertionsBuilder

object CollectionAssertionsBuilder : CollectionAssertions

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: AssertionPlant<Collection<*>>, size: Int): Assertion

isEmpty

fun isEmpty(subjectProvider: SubjectProvider<Collection<*>>): Assertion

isNotEmpty

fun isNotEmpty(subjectProvider: SubjectProvider<Collection<*>>): Assertion

size

fun <T : Collection<*>> size(expect: Expect<T>): ExtractedFeaturePostStep<T, Int>
fun size(plant: AssertionPlant<Collection<*>>, assertionCreator: Assert<Int>.() -> Unit): Assertion