doc / ch.tutteli.atrium.logic.creating.transformers.impl.subjectchanger / DefaultFailureHandlerImpl

DefaultFailureHandlerImpl

class DefaultFailureHandlerImpl<T, R> : SubjectChanger.FailureHandler<T, R> (source)

Constructors

<init>

DefaultFailureHandlerImpl()

Functions

createAssertion

fun createAssertion(container: AssertionContainer<T>, descriptiveAssertion: Assertion, maybeAssertionCreator: Option<Expect<R>.() -> Unit>): Assertion

Creates the failing assertion most likely based on the given descriptiveAssertion -- which in turn is based on the previously specified description, representation etc. -- and should incorporate the assertions maybeAssertionCreator would have created for the new subject as explanatory assertions.