Skip to content

Commit

Permalink
Polish RecordApplicationEvents javadoc: add note on captured threads
Browse files Browse the repository at this point in the history
This commit clarifies that the annotation is used to capture events that
are fired from the test `Thread` or descendant threads, since the test
framework uses `InheritableThreadLocal` to store captured events now.

See gh-31079
See gh-30020
  • Loading branch information
simonbasle committed Nov 9, 2023
1 parent 9414c2d commit 4287417
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
* instruct the <em>Spring TestContext Framework</em> to record all
* {@linkplain org.springframework.context.ApplicationEvent application events}
* that are published in the {@link org.springframework.context.ApplicationContext
* ApplicationContext} during the execution of a single test.
* ApplicationContext} during the execution of a single test, either from the
* test thread or its descendants.
*
* <p>The recorded events can be accessed via the {@link ApplicationEvents} API
* within your tests.
Expand Down

0 comments on commit 4287417

Please sign in to comment.