doc / ch.tutteli.atrium.creating / IReportingAssertionPlantNullable

IReportingAssertionPlantNullable

interface IReportingAssertionPlantNullable<out T> : IAssertionPlantNullable<T>, IBaseReportingAssertionPlant<T, IAssertionPlantNullable<T>>

Properties

subject

open val subject: T

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

Extension Functions

isNotNull

fun <T : Any> IAssertionPlantNullable<T?>.isNotNull(assertionCreator: IAssertionPlant<T>.() -> Unit): Unit

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

isNull

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

Makes the assertion that IAssertionPlant.subject is null.

istNichtNull

fun <T : Any> IAssertionPlantNullable<T?>.istNichtNull(assertionCreator: IAssertionPlant<T>.() -> Unit): Unit

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

istNull

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

Makes the assertion that IAssertionPlant.subject is null.