doc / ch.tutteli.atrium.logic.creating.transformers.impl / DefaultSubjectChanger

DefaultSubjectChanger

class DefaultSubjectChanger : SubjectChanger

Constructors

<init>

DefaultSubjectChanger()

Functions

reported

fun <T, R> reported(container: AssertionContainer<T>, description: Translatable, representation: Any, transformation: (T) -> Option<R>, failureHandler: SubjectChanger.FailureHandler<T, R>, maybeSubAssertions: Option<Expect<R>.() -> Unit>): Expect<R>

Changes to a new subject according to the given transformation -- the change as such is reflected in reporting by the given description and representation.

unreported

fun <T, R> unreported(container: AssertionContainer<T>, transformation: (T) -> R): Expect<R>

Changes to a new subject according to the given transformation without showing it in reporting and returns a new Expect for the new subject.