atrium-impl-common / ch.tutteli.atrium.creating

Package ch.tutteli.atrium.creating

Types

IAssertionPlant interface IAssertionPlant<out T : Any> : IAssertionPlantWithCommonFields<T>

Represents a plant for IAssertions and offers the possibility to check all the added assertions.

IAssertionPlantNullable interface IAssertionPlantNullable<out T> : IAssertionPlantWithCommonFields<T>

Represents an assertion plant for nullable types.

IAssertionPlantWithCommonFields interface IAssertionPlantWithCommonFields<out T>

An assertion plant which has CommonFields; provides the property subject for ease of use.

Functions

createAssertionsAndCheckThem fun <T : Any> IAssertionPlant<T>.createAssertionsAndCheckThem(createAssertions: IAssertionPlant<T>.() -> Unit): IAssertionPlant<T>

Uses this plant as receiver of the given createAssertions function and then calls IAssertionPlant.checkAssertions.