Skip to content

Commit c5e045a

Browse files
committed
Expand release notes for PreInterruptCallback
1 parent f32aa0a commit c5e045a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

documentation/src/docs/asciidoc/release-notes/release-notes-5.12.0-M1.adoc

+6-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,12 @@ JUnit repository on GitHub.
9090
a test-scoped `ExtensionContext` in `Extension` methods called during test class
9191
instantiation. This behavior will become the default in future versions of JUnit.
9292
* `@TempDir` is now supported on test class constructors.
93-
* Added `PreInterruptCallback`
93+
* The new `PreInterruptCallback` extension point defines the API for `Extensions` that
94+
wish to be called prior to invocations of `Thread#interrupt()` by the `@Timeout`
95+
extension.
96+
* When enabled via the `junit.jupiter.execution.timeout.threaddump.enabled` configuration
97+
parameter, an implementation of `PreInterruptCallback` is registered that writes a
98+
thread dump to `System.out` prior to interrupting a test thread due to a timeout.
9499

95100

96101
[[release-notes-5.12.0-M1-junit-vintage]]

0 commit comments

Comments
 (0)