doc / ch.tutteli.atrium.creating / ReportingAssertionPlantNullable

ReportingAssertionPlantNullable

interface ReportingAssertionPlantNullable<out T> : AssertionPlantNullable<T>, BaseReportingAssertionPlant<T, AssertionPlantNullable<T>>

Properties

subject

open val subject: T

The subject for which this plant will create, check and report Assertions.

Extension Functions

isNotNull

fun <T : Any> AssertionPlantNullable<T?>.isNotNull(assertionCreator: Assert<T>.() -> Unit): Unit

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.

isNull

fun <T> AssertionPlantNullable<T>.isNull(): Unit

Makes the assertion that AssertionPlant.subject is null.

istNichtNull

fun <T : Any> AssertionPlantNullable<T?>.istNichtNull(assertionCreator: Assert<T>.() -> Unit): Unit

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.

istNull

fun <T> AssertionPlantNullable<T>.istNull(): Unit

Makes the assertion that AssertionPlant.subject is null.

notToBeNull

infix fun <T : Any> AssertionPlantNullable<T?>.notToBeNull(assertionCreator: Assert<T>.() -> Unit): Unit

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.

toBe

infix fun <T> AssertionPlantNullable<T>.toBe(onlyNullAllowed: Nothing?): Unit

Makes the assertion that AssertionPlant.subject is null.