public class AssertThrowsAdvice
extends Object
Intercepts the jUnit5 Assertion.assertThrows
-
Constructor Summary
Constructors
-
Method Summary
static void
enter(Class expectedType,
org.junit.jupiter.api.function.Executable executable)
static void
exit(Class expectedType,
org.junit.jupiter.api.function.Executable executable)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AssertThrowsAdvice
public AssertThrowsAdvice()
-
Method Details
-
enter
@OnMethodEnter
public static void enter(Class expectedType,
org.junit.jupiter.api.function.Executable executable)
-
exit
@OnMethodExit
public static void exit(Class expectedType,
org.junit.jupiter.api.function.Executable executable)