class CommonFields<out T>
(source)
Common fields of an assertion plant.
T
- The type of the AssertionPlant.subject.
CommonFields(assertionVerb: Translatable, subject: T, assertionChecker: AssertionChecker, nullRepresentation: Any) CommonFields(assertionVerb: Translatable, subjectProvider: () -> T, representationProvider: () -> Any?, assertionChecker: AssertionChecker, nullRepresentation: Any) |
val assertionChecker: AssertionChecker
The checker which will be used to check Assertions. |
|
val assertionVerb: Translatable
The assertion verb which will be used inter alia in reporting. |
|
val subjectProvider: () -> T
Provides the AssertionPlant.subject for which this plant will create/check Assertions. |
fun check(assertions: List<Assertion>): Unit
Uses assertionChecker to check the given assertions (see AssertionChecker.check). |