interface FinalStep : AssertionBuilderFinalStep<Assertion>
(source)
Final step which creates a DescriptiveAssertion if the test holds or an AssertionGroup which includes
additionally a failure hint created by the given failureHintFactory in case showHint evaluates to true
.
abstract val description: Translatable
The previously defined DescriptiveAssertion.description. |
|
abstract val failureHintFactory: () -> Assertion
The previously defined factory method which creates the failure hint. |
|
abstract val representation: Any
The previously defined DescriptiveAssertion.representation. |
|
abstract val showHint: () -> Boolean
The previously defined showHint predicate which defines whether the failure hint shall be shown in case the assertion fails or not. |
|
abstract val test: () -> Boolean
The previously defined test which is used to determine DescriptiveAssertion.holds. |
abstract fun build(): T
|
fun create(test: () -> Boolean, showHint: () -> Boolean, failureHintFactory: () -> Assertion, description: Translatable, representation: Any): DescriptiveAssertionWithFailureHint.FinalStep |