doc / ch.tutteli.atrium.creating / AssertionPlantWithCommonFields / CommonFields

CommonFields

data class CommonFields<out T>

Common fields of an assertion plant.

Parameters

T - The type of the subject of this AssertionPlant.

Constructors

<init>

CommonFields(assertionVerb: Translatable, subject: T, assertionChecker: AssertionChecker, nullRepresentation: Any)

Properties

assertionChecker

val assertionChecker: AssertionChecker

The checker which will be used to check Assertions.

assertionVerb

val assertionVerb: Translatable

The assertion verb which will be used inter alia in error reporting.

subject

val subject: T

The subject for which this plant will create/check Assertions.

Functions

check

fun check(assertions: List<Assertion>): Unit

Uses assertionChecker to check the given assertions (see AssertionChecker.check).