interface AssertionPlantNullable<out T> : BaseAssertionPlant<T, AssertionPlantNullable<T>>
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.
open val maybeSubject: Option<T>
Either Some wrapping the subject of an Assertion or None in case a previous subject change could not be carried out. |
|
abstract val subjectProvider: () -> T
The provider which provides subject. |
abstract fun addAssertion(assertion: Assertion): A
Adds the given assertion to this plant. |
fun <T, A : BaseAssertionPlant<T, *>> A.
Turns Assert or AssertionPlantNullable into an Expect so that you can use new functionality which is not available on Assert/AssertionPlantNullable. |
|
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 the Assert.subject is |
|
fun <T : Any> AssertionPlantNullable<T?>.
Makes the assertion that the Assert.subject is expected. |
|
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. |
|
infix fun <T : BigDecimal> AssertionPlantNullable<T?>. |
|
fun <T> AssertionPlantNullable<T>.
Makes the assertion that the Assert.subject is |
|
fun <T : Any> AssertionPlantNullable<T?>.
Makes the assertion that the Assert.subject is either |
|
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?>.
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 : BigDecimal> AssertionPlantNullable<T?>. |
|
infix fun <T : BigDecimal> AssertionPlantNullable<T?>. infix fun <T : Any> AssertionPlantNullable<T>. |
|
infix fun <T> AssertionPlantNullable<T>.
Makes the assertion that the Assert.subject is |
|
fun <T : Any> AssertionPlantNullable<T?>.
Makes the assertion that the Assert.subject is expected. |
|
infix fun <T : Any> AssertionPlantNullable<T?>.
Makes the assertion that the Assert.subject is expected. |
|
fun <T : Any> AssertionPlantNullable<T?>.
Makes the assertion that the Assert.subject is either |
|
infix fun <T : Any> AssertionPlantNullable<T?>.
Makes the assertion that the Assert.subject is either |
interface
Represents an AssertionPlantNullable which is intended to serve as receiver object for lambdas which create Assertions, in which this assertion plant collects the so created assertions. |
|
interface
Represents an assertion plant for nullable types and offers the possibility to addAssertions and to report them. |