assertNormal

public R assertNormal(Supplier<String> messageSupplier)(source)

Asserts that the call resulted in a result of type type and returns the result. Otherwise, an AssertionFailedError containing the message supplied by messageSupplier will be thrown. messageSupplier is allowed to supply null.

Return

the result resulted by the call

Parameters

messageSupplier

a supplier for the message if the throwable was not thrown

Throws

AssertionFailedError

if the call resulted in a throwable