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

CollectionAssertionsBuilder

object CollectionAssertionsBuilder : CollectionAssertions
Deprecated: Use _logic from ch.tutteli.atrium.logic instead; will be removed with 1.0.0

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