doc / ch.tutteli.atrium.verbs / assert

assert

fun <T : Any> assert(subject: T): ReportingAssertionPlant<T> (source)

Creates an AssertionPlant for the given subject.

Return
The newly created plant.

See Also

CoreFactory.newReportingPlant

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

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 assert(act: () -> Unit): ThrowableThrown.Builder (source)

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>.assert(newSubject: R): Assert<R> (source)
Deprecated: `assert` should not be nested, use `property` instead.