doc / ch.tutteli.atrium.verbs / assertThat

assertThat

fun <T : Any> assertThat(subject: T): ReportingAssertionPlant<T>

Creates an AssertionPlant for the given subject.

Return
The newly created plant.

See Also

CoreFactory.newReportingPlant

fun <T : Any> assertThat(subject: T, assertionCreator: Assert<T>.() -> Unit): AssertionPlant<T>

Creates an AssertionPlant for the given subject and AssertionPlant.addAssertionsCreatedBy the given assertionCreator lambda where the created Assertions are added as a group and usually (depending on the configured Reporter) reportBuilder as a whole.

Return
The newly created plant.

See Also

CoreFactory.newReportingPlantAndAddAssertionsCreatedBy

fun assertThat(act: () -> Unit): ThrowableThrown.Builder

Creates a ThrowableThrown.Builder for the given function act which is expected to throw a Throwable.

Return
The newly created ThrowableThrown.Builder.

fun <T : Any, R : Any> Assert<T>.assertThat(newSubject: R): Assert<R>
Deprecated: `assertThat` should not be nested, use `property` instead.