public static class Assertions.ExecutableOutcomeSubject<T extends java.lang.Throwable>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private org.junit.jupiter.api.function.Executable |
executable |
private java.lang.Class<T> |
expectedType |
Constructor and Description |
---|
ExecutableOutcomeSubject(org.junit.jupiter.api.function.Executable executable,
java.lang.Class<T> expectedType) |
Modifier and Type | Method and Description |
---|---|
void |
when(boolean condition)
Checks that the executable succeeds, or throws the expected exception if 'condition' is true.
|
private final org.junit.jupiter.api.function.Executable executable
private final java.lang.Class<T extends java.lang.Throwable> expectedType
ExecutableOutcomeSubject(org.junit.jupiter.api.function.Executable executable, java.lang.Class<T> expectedType)