Top Description Constructors Methods
org.junit.jupiter.api

pack-priv Class AssertThrowsExactly

extends Object
Class Inheritance
Static Imports
org.junit.jupiter.api.AssertionFailureBuilder.assertionFailure, .AssertionUtils.getCanonicalName

AssertThrowsExactly is a collection of utility methods that support asserting an exception of an exact type is thrown.
Since
5.8

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static <T extends Throwable> T
assertThrowsExactly(Class<T> expectedType, Executable executable)

pack-priv static <T extends Throwable> T
assertThrowsExactly(Class<T> expectedType, Executable executable, @Nullable String message)

pack-priv static <T extends Throwable> T
assertThrowsExactly(Class<T> expectedType, Executable executable, Supplier<@Nullable String> messageSupplier)

private static <T extends Throwable> T
assertThrowsExactly(Class<T> expectedType, Executable executable, @Nullable Object messageOrSupplier)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AssertThrowsExactlyback to summary
private AssertThrowsExactly()

Method Detail

assertThrowsExactlyback to summary
pack-priv static <T extends Throwable> T assertThrowsExactly(Class<T> expectedType, Executable executable)
assertThrowsExactlyback to summary
pack-priv static <T extends Throwable> T assertThrowsExactly(Class<T> expectedType, Executable executable, @Nullable String message)
assertThrowsExactlyback to summary
pack-priv static <T extends Throwable> T assertThrowsExactly(Class<T> expectedType, Executable executable, Supplier<@Nullable String> messageSupplier)
assertThrowsExactlyback to summary
private static <T extends Throwable> T assertThrowsExactly(Class<T> expectedType, Executable executable, @Nullable Object messageOrSupplier)
Annotations
@SuppressWarnings:unchecked