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

CollectionAssertions

interface CollectionAssertions
Deprecated: Use CollectionAssertions from atrium-logic; will be removed with 1.0.0

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

isEmpty

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

isNotEmpty

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

size

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

Inheritors

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.