Skip to content

Commit 4287417

Browse files
committed
Polish RecordApplicationEvents javadoc: add note on captured threads
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
1 parent 9414c2d commit 4287417

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: spring-test/src/main/java/org/springframework/test/context/event/RecordApplicationEvents.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
* instruct the <em>Spring TestContext Framework</em> to record all
2929
* {@linkplain org.springframework.context.ApplicationEvent application events}
3030
* that are published in the {@link org.springframework.context.ApplicationContext
31-
* ApplicationContext} during the execution of a single test.
31+
* ApplicationContext} during the execution of a single test, either from the
32+
* test thread or its descendants.
3233
*
3334
* <p>The recorded events can be accessed via the {@link ApplicationEvents} API
3435
* within your tests.

0 commit comments

Comments
 (0)