val <T : Throwable> IAssertionPlant<T>.message: IAssertionPlant<String>
(source)
Creates an IAssertionPlantNullable for the message of the plant's subject (which is an Throwable) and makes the assertion that message isNotNull.
AssertionError
- Might throw an AssertionError in case message is null
.
Return
An IAssertionPlant which immediately evaluates IAssertions (see IAtriumFactory.newCheckImmediately).
fun <T : Throwable> IAssertionPlant<T>.message(createAssertions: IAssertionPlant<String>.() -> Unit): IAssertionPlant<String>
(source)
Creates an IAssertionPlantNullable for the message of the plant's subject (which is an Throwable) and makes the assertion that message isNotNull and uses createAssertions which might create further IAssertions which are lazily evaluated at the end.
AssertionError
- Might throw an AssertionError in case message is null
or if an additionally created IAssertions (by calling createAssertions) does not hold.
Return
An IAssertionPlant which lazily evaluates IAssertions (see IAtriumFactory.newCheckLazily).