doc / ch.tutteli.atrium.verbs.assertthat

Package ch.tutteli.atrium.verbs.assertthat

Contains the Assertion Verbs functions named assertThat.

Functions

assertThat

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

Creates an IAssertionPlant for the given subject.

fun <T : Any> assertThat(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 assertThat(act: () -> Unit): ThrowableThrownBuilder

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