interface CollectionAssertions
(source)
Defines the minimum set of assertion functions and builders applicable to Collection, which an implementation of the domain of Atrium has to provide.
abstract fun hasSize(plant: AssertionPlant<Collection<*>>, size: Int): Assertion |
|
abstract fun isEmpty(plant: AssertionPlant<Collection<*>>): Assertion |
|
abstract fun isNotEmpty(plant: AssertionPlant<Collection<*>>): Assertion |
|
abstract fun size(plant: AssertionPlant<Collection<*>>, assertionCreator: Assert<Int>.() -> Unit): Assertion |
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. |