doc / ch.tutteli.atrium.verbs / expect

expect

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

Creates an AssertionPlant for the given subject.

Return
The newly created plant.

See Also

CoreFactory.newReportingPlant

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