interface CollectingAssertionPlantNullable<out T> : AssertionPlantNullable<T>, BaseCollectingAssertionPlant<T, AssertionPlantNullable<T>, CollectingAssertionPlantNullable<T>>
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.
In contrast to ReportingAssertionPlantNullable, this plant does not offer reporting capabilities. It merely offers a method to getAssertions (the collected ones).
T
- The type of the subject of this AssertionPlant.
abstract fun getAssertions(): List<Assertion>
|
fun <T, A : BaseAssertionPlant<T, *>> A.asExpect(): Expect<T> fun <T : Any, A : BaseAssertionPlant<T, *>> A.asExpect(assertionCreator: Expect<T>.() -> Unit): 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?>.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. |
|
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?>.toBe(expected: T?): Unit
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?>.toBeNullIfNullGivenElse(assertionCreatorOrNull: (Assert<T>.() -> Unit)?): Unit
Makes the assertion that the Assert.subject is either |