doc / ch.tutteli.atrium.creating

Package ch.tutteli.atrium.creating

Types

DownCastBuilder class DownCastBuilder<out T : Any, out TSub : T>

A builder for creating a down-casting IAssertion.

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.

ThrowableFluent class ThrowableFluent

Provides toThrow methods for making assertions about a Throwable which one expects was thrown.

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.