interface AssertionPlantNullable<out T> : BaseAssertionPlant<T, AssertionPlantNullable<T>>
(source)
Represents an assertion plant for nullable types.
It is the entry point for two assertion functions, the first makes the assumption that subject is null
and the other that subject is not null
. It only provides a reduced set of ReportingAssertionPlantNullable
which is actually created when a user of Atrium is using an assertion verb function.
T
- The type of the subject of this AssertionPlant.
abstract val subject: T
The subject for which this plant will create Assertions. |
|
abstract val subjectProvider: () -> T
The provider which provides subject. |
abstract fun addAssertion(assertion: Assertion): A
Adds the given assertion to this plant. |
fun <T : Any> AssertionPlantNullable<T?>.
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. |
|
fun <T> AssertionPlantNullable<T>.
Makes the assertion that AssertionPlant.subject is |
|
fun <T> AssertionPlantNullable<T>.ist(null: Nothing?): Unit
Makes the assertion that AssertionPlant.subject is |
|
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. |
|
fun <T : Any> AssertionPlantNullable<T?>.istNichtNullAber(expected: T): Unit
Makes the assertion that AssertionPlantNullable.subject is not null but the expected value. |
|
fun <T> AssertionPlantNullable<T>.
Makes the assertion that AssertionPlant.subject is |
|
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. |
|
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. |
|
infix fun <T : Any> AssertionPlantNullable<T?>.
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. |
|
fun <T : Any> AssertionPlantNullable<T?>.notToBeNullBut(expected: T): Unit
Makes the assertion that AssertionPlantNullable.subject is not null but the expected value. |
|
infix fun <T : Any> AssertionPlantNullable<T?>.notToBeNullBut(expected: T): Unit
Makes the assertion that AssertionPlantNullable.subject is not null but the expected value. |
|
fun <T> AssertionPlantNullable<T>.toBe(null: Nothing?): Unit
Makes the assertion that AssertionPlant.subject is |
|
infix fun <T> AssertionPlantNullable<T>.toBe(null: Nothing?): Unit
Makes the assertion that AssertionPlant.subject is |
|
infix fun <T> AssertionPlantNullable<T>.
Makes the assertion that AssertionPlant.subject is |
interface ReportingAssertionPlantNullable<out T> : AssertionPlantNullable<T>, BaseReportingAssertionPlant<T, AssertionPlantNullable<T>>
Represents an assertion plant for nullable types and offers the possibility to addAssertions and to report them. |