fun newThrowableFluent(assertionVerb: ITranslatable, act: () -> Unit, reporter: IReporter): ThrowableFluent
Creates a ThrowableFluent based on the given assertionVerb and the act function.
It uses the given reporter for reporting.
assertionVerb
- The assertion verb which will be used inter alia in reporting
(see IAssertionPlantWithCommonFields.CommonFields.assertionVerb).
act
- The function which is expected to throw a Throwable which in turn will be used as subject
for postulated IAssertions (see ThrowableFluent and
IAssertionPlantWithCommonFields.CommonFields.subject).
reporter
- The reporter used to create a newThrowingAssertionChecker and used for failure reporting.
Return
The newly created ThrowableFluent.
See Also
fun newThrowableFluent(assertionVerb: ITranslatable, act: () -> Unit, assertionChecker: IAssertionChecker): ThrowableFluent
Creates a ThrowableFluent based on the given assertionVerb and the act function.
assertionVerb
- The assertion verb which will be used inter alia in reporting
(see IAssertionPlantWithCommonFields.CommonFields.assertionVerb).
act
- The function which is expected to throw a Throwable which in turn will be used as subject
for postulated IAssertions (see ThrowableFluent and
IAssertionPlantWithCommonFields.CommonFields.subject).
assertionChecker
- Used to report failures (see IAssertionChecker.fail
and IAssertionPlantWithCommonFields.CommonFields.assertionChecker)).
Return
The newly created ThrowableFluent.
See Also