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

AssertionVerbFactory

object AssertionVerbFactory (source)

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): Builder

checkImmediately

fun <T : Any> checkImmediately(subject: T): <ERROR CLASS>

checkLazily

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

checkNullable

fun <T> checkNullable(subject: T): <ERROR CLASS>