interface AssertionCollectorForExplanation
(source)
Responsible to collect assertions made in a sub-AssertionPlant and intended for explanation.
open fun <T : Any> collect(warningCannotEvaluate: Translatable, maybeSubject: MaybeSubject<T>, assertionCreator: CollectingAssertionPlant<T>.() -> Unit): List<Assertion>
Collects the Assertion created by assertionCreator and uses the given maybeSubject as CollectingAssertionPlant.subject if it is MaybeSubject.Present. abstract fun <T, A : BaseAssertionPlant<T, A>, C : BaseCollectingAssertionPlant<T, A, C>> collect(warningCannotEvaluate: Translatable, maybeSubject: MaybeSubject<T>, collectingPlantFactory: (() -> T) -> C, assertionCreator: C.() -> Unit): List<Assertion>
Collects the Assertion created by assertionCreator with the collecting assertion plant created by the given collectingPlantFactory and uses the given maybeSubject as BaseCollectingAssertionPlant.subject if it is MaybeSubject.Present. |
|
open fun <T> collectNullable(warningCannotEvaluate: Translatable, maybeSubject: MaybeSubject<T>, assertionCreator: CollectingAssertionPlantNullable<T>.() -> Unit): List<Assertion>
Collects the Assertion created by assertionCreator and uses the given maybeSubject as CollectingAssertionPlantNullable.subject if it is MaybeSubject.Present. |
interface NonThrowingAssertionCollectorForExplanation : AssertionCollectorForExplanation
Represents an assertion collector meant for explanation which does not throw in case not a single Assertion was collected. |
|
interface ThrowingAssertionCollectorForExplanation : AssertionCollectorForExplanation
Represents an assertion collector meant for explanation which throws in case not a single Assertion was collected. |