PreInterruptCallback defines the API for Extensions that wish to be called prior to invocations of
Thread#interrupt() by the org.junit.jupiter.api.Timeout
extension.
JUnit registers a default implementation that dumps the stacks of all
threads to System.out if the
junit.jupiter.execution.timeout.threaddump.enabled configuration parameter is set to
true.
org.junit.jupiter.api.Timeout
| Modifier and Type | Field and Description |
|---|---|
| public static final String | THREAD_DUMP_ENABLED_PROPERTY_NAME
Property name used to enable dumping the stack of all
threads to |
| Modifier and Type | Method and Description |
|---|---|
| public void | beforeThreadInterrupt(PreInterruptContext
the context with the target preInterruptContext, ExtensionContext Thread, which will get interrupted.the extension context for the callback; never extensionContext)nullCallback that is invoked before a |
| THREAD_DUMP_ENABLED_PROPERTY_NAME | back to summary |
|---|---|
| public static final String THREAD_DUMP_ENABLED_PROPERTY_NAME Property name used to enable dumping the stack of all
threads to This behavior is disabled by default.
| |
| beforeThreadInterrupt | back to summary |
|---|---|
| public void beforeThreadInterrupt(PreInterruptContext preInterruptContext, ExtensionContext extensionContext) throws Exception Callback that is invoked before a Note There is no guarantee on which
| |