AssertThrows is a collection of utility methods that support asserting
an exception of an expected type is thrown.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <T extends Throwable> T | |
| pack-priv static <T extends Throwable> T | |
| pack-priv static <T extends Throwable> T | assertThrows(Class<T> expectedType, Executable executable, Supplier<@Nullable String> messageSupplier)
|
| private static <T extends Throwable> T |
| AssertThrows | back to summary |
|---|---|
| private AssertThrows() | |
| assertThrows | back to summary |
|---|---|
| pack-priv static <T extends Throwable> T assertThrows(Class<T> expectedType, Executable executable) | |
| assertThrows | back to summary |
|---|---|
| pack-priv static <T extends Throwable> T assertThrows(Class<T> expectedType, Executable executable, @Nullable String message) | |
| assertThrows | back to summary |
|---|---|
| pack-priv static <T extends Throwable> T assertThrows(Class<T> expectedType, Executable executable, Supplier<@Nullable String> messageSupplier) | |
| assertThrows | back to summary |
|---|---|
private static <T extends Throwable> T assertThrows(Class<T> expectedType, Executable executable, @Nullable Object messageOrSupplier)
| |