doc / ch.tutteli.atrium.api.fluent.en_GB / message

message

val <T : Throwable> Expect<T>.message: Expect<String>

Expects that the property Throwable.message of the subject of the assertion is not null, creates an Expect for it and returns it.

Exceptions

AssertionError - Might throw an AssertionError if the assertion made is not correct.

Return
The newly created Expect for the property Throwable.message of the subject of the assertion

fun <T : Throwable> Expect<T>.message(assertionCreator: Expect<String>.() -> Unit): Expect<T>

Expects that the property Throwable.message of the subject of the assertion is not null and holds all assertions the given assertionCreator creates for it and returns this assertion container.

Exceptions

AssertionError - Might throw an AssertionError if the assertion made is not correct.

Return
This assertion container to support a fluent API.