assertThrows

public static T assertThrows<T extends Throwable>(Callable<? extends Object> callable, Class<T> type, Supplier<String> messageSupplier)(source)

Shortcut for call and assertThrows.

Return

see assertThrows

Parameters

callable

see call

messageSupplier

public static T assertThrows<T extends Throwable>(Runnable runnable, Class<T> type, Supplier<String> messageSupplier)(source)

Shortcut for call and assertThrows.

Return

see assertThrows

Parameters

runnable

see call

type
messageSupplier

public static T assertThrows<T extends Throwable>(Callable<? extends Object> callable, Class<T> type, String message)(source)

Shortcut for call and assertThrows.

Return

see assertThrows

Parameters

callable

see call

type
message

public static T assertThrows<T extends Throwable>(Runnable runnable, Class<T> type, String message)(source)

Shortcut for call and assertThrows.

Return

see assertThrows

Parameters

runnable

see call

type
message

public static E assertThrows<E extends Throwable>(Callable<? extends Object> callable, Class<E> type)(source)

Shortcut for call and assertThrows.

Return

see assertThrows

Parameters

callable

see call

type

public static E assertThrows<E extends Throwable>(Runnable runnable, Class<E> type)(source)

Shortcut for call and assertThrows.

Return

see assertThrows

Parameters

runnable

see call

type