doc / ch.tutteli.atrium.verbs.assert

Package ch.tutteli.atrium.verbs.assert

Contains the Assertion Verbs functions named assert.

Functions

assert

fun <T : Any> assert(subject: T): <ERROR CLASS>

Creates an IAssertionPlant for the given subject.

fun <T : Any> assert(subject: T, assertionCreator: IAssertionPlant<T>.() -> Unit): IAssertionPlant<T>

Creates an IAssertionPlant for the given subject and IAssertionPlant.addAssertionsCreatedBy the given assertionCreator lambda where the created IAssertions are added as a group and usually (depending on the configured IReporter) reported as a whole.

fun assert(act: () -> Unit): ThrowableThrownBuilder

Creates an ThrowableThrownBuilder for the given function act which is expected to throw a Throwable.