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

CommonFields

data class CommonFields<out T>

Common fields of an assertion plant.

Parameters

T - The type of the subject of this IAssertionPlant.

Constructors

<init>

CommonFields(assertionVerb: ITranslatable, subject: T, assertionChecker: IAssertionChecker, nullRepresentation: Any)

Properties

assertionChecker

val assertionChecker: IAssertionChecker

The checker which will be used to check IAssertions.

assertionVerb

val assertionVerb: ITranslatable

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 IAssertions.

Functions

check

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

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