atrium-core-impl-robstoll-lib / ch.tutteli.atrium.creating / CollectingAssertionPlantImpl

CollectingAssertionPlantImpl

class CollectingAssertionPlantImpl<out T : Any> : MutableListBasedAssertionPlant<T, AssertionPlant<T>>, CollectingAssertionPlant<T>

Constructors

<init>

CollectingAssertionPlantImpl(subjectProvider: () -> T)

Properties

self

val self: CollectingAssertionPlantImpl<T>

The instance itself but typed as A which is the type used for the fluent style API.

subject

val subject: T

Functions

addAssertionsCreatedBy

fun addAssertionsCreatedBy(assertionCreator: AssertionPlant<T>.() -> Unit): AssertionPlant<T>

Inherited Functions

addAssertion

open fun addAssertion(assertion: Assertion): A

clearAssertions

fun clearAssertions(): Unit

getAssertions

fun getAssertions(): List<Assertion>