doc / ch.tutteli.atrium.verbs.expect

Package ch.tutteli.atrium.verbs.expect

Contains the Assertion Verbs functions named expect.

Functions

expect

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

Creates an IAssertionPlant for the given subject.

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

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