doc / ch.tutteli.atrium.creating / ReportingAssertionPlantNullable

ReportingAssertionPlantNullable

interface ReportingAssertionPlantNullable<out T> : AssertionPlantNullable<T>, BaseReportingAssertionPlant<T, AssertionPlantNullable<T>> (source)

Represents an assertion plant for nullable types and offers the possibility to addAssertions and to report them.

You can think of it as an Assertion factory which does more than just factoring but also provides quality assurance capabilities.

Parameters

T - The type of the subject of this AssertionPlant.

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.

ist

fun <T> AssertionPlantNullable<T>.ist(null: Nothing?): 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.

istNichtNullAber

fun <T : Any> AssertionPlantNullable<T?>.istNichtNullAber(expected: T): Unit

Makes the assertion that AssertionPlantNullable.subject is not null but the expected value.

istNull

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

Makes the assertion that AssertionPlant.subject is null.

notToBeNull

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.

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.

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.

notToBeNullBut

fun <T : Any> AssertionPlantNullable<T?>.notToBeNullBut(expected: T): Unit

Makes the assertion that AssertionPlantNullable.subject is not null but the expected value.

notToBeNullBut

infix fun <T : Any> AssertionPlantNullable<T?>.notToBeNullBut(expected: T): Unit

Makes the assertion that AssertionPlantNullable.subject is not null but the expected value.