interface AssertionCheckerDecorator<T>
(source)
Represents a decorator for AssertionChecker which passes a specified assertion verb, representation and assertions to AssertionChecker.check for the given maybeSubject.
T
- The type of the maybeSubject.
abstract val assertionChecker: AssertionChecker
The AssertionChecker which shall be used for checking the assertions. |
|
abstract val assertionVerb: Translatable |
|
abstract val maybeSubject: Option<T>
Either Some wrapping the subject of the current assertion or None in case a previous subject change was not successful. |
|
abstract val representation: Any? |
abstract fun check(assertions: List<Assertion>): Unit
Uses assertionChecker to check the given assertions (see AssertionChecker.check). |
fun <T> create(assertionVerb: Translatable, maybeSubject: Option<T>, representation: Any?, assertionChecker: AssertionChecker): ReportingAssertionContainer.AssertionCheckerDecorator<T>
Creates an AssertionCheckerDecorator. |