doc / ch.tutteli.atrium.api.cc.infix.en_UK / notToBeNull

notToBeNull

inline infix fun <reified T : Any> AssertionPlantNullable<T?>.notToBeNull(noinline assertionCreator: Assert<T>.() -> Unit): Unit (source)
Deprecated: Use pendant from package en_GB; will be removed with 1.0.0

Makes the assertion that AssertionPlantNullable.subject is not null and if so, uses assertionCreator which could create further assertions which are added as a group.

Exceptions

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

Return
Notice, that this assertion function cannot provide a fluent API because it depends on whether the first assertion (Assert.subject is not null) holds or not. Define subsequent assertions via the assertionCreator lambda.