doc / ch.tutteli.atrium.verbs.internal / AssertionVerbFactory

AssertionVerbFactory

object AssertionVerbFactory

Only required if you implement a custom component (for instance an own Reporter, ObjectFormatter etc.) or an own assertion function API (e.g., atrium-api-cc-en_GB in a different language) and you want to reuse a specification from atrium-spec to test your custom component against it.

Functions

checkException

fun checkException(act: () -> Unit): ThrowableThrown.Builder

checkImmediately

fun <T : Any> checkImmediately(subject: T): ReportingAssertionPlant<T>

checkLazily

fun <T : Any> checkLazily(subject: T, assertionCreator: Assert<T>.() -> Unit): AssertionPlant<T>

checkNullable

fun <T> checkNullable(subject: T): ReportingAssertionPlantNullable<T>