[[spring-testing-annotation-recordapplicationevents]]
= `@RecordApplicationEvents`
:page-section-summary-toc: 1

`@RecordApplicationEvents` is an annotation that can be applied to a test class to
instruct the _Spring TestContext Framework_ to record all application events that are
published in the `ApplicationContext` during the execution of a single test.

The recorded events can be accessed via the `ApplicationEvents` API within tests.

See xref:testing/testcontext-framework/application-events.adoc[Application Events] and the 
{spring-framework-api}/test/context/event/RecordApplicationEvents.html[`@RecordApplicationEvents`
javadoc] for an example and further details.
