assertNormal

public abstract 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


public R assertNormal(String message)(source)

Asserts that the call resulted in a result of type type and returns the result. Otherwise, an AssertionFailedError containing message will be thrown.

Return

the result resulted by the call

Parameters

message

the message if the expected throwable was not thrown

Throws

AssertionFailedError

if the call resulted in a throwable


public R assertNormal()(source)

Asserts that the call resulted in a result of type type and returns the result. Otherwise, an AssertionFailedError will be thrown.

Return

the result resulted by the call

Throws

AssertionFailedError

if the call resulted in a throwable