# Package org.springframework.test.context.event

@NonNullApi @NonNullFields package org.springframework.test.context.event
Test event support classes for the Spring TestContext Framework.

Related Packages
Package
Description
org.springframework.test.context
This package contains the Spring TestContext Framework which provides annotation-driven unit and integration testing support that is agnostic of the actual testing framework in use.
org.springframework.test.context.event.annotation
Test execution event annotations for the Spring TestContext Framework.
Class
Description
AfterTestClassEvent
`TestContextEvent` published by the `EventPublishingTestExecutionListener` when `TestExecutionListener.afterTestClass(TestContext)` is invoked.
AfterTestExecutionEvent
`TestContextEvent` published by the `EventPublishingTestExecutionListener` when `TestExecutionListener.afterTestExecution(TestContext)` is invoked.
AfterTestMethodEvent
`TestContextEvent` published by the `EventPublishingTestExecutionListener` when `TestExecutionListener.afterTestMethod(TestContext)` is invoked.
ApplicationEvents
`ApplicationEvents` encapsulates all application events that were fired during the execution of a single test method.
ApplicationEventsHolder
Holder class to expose the application events published during the execution of a test in the form of a thread-bound `ApplicationEvents` object.
ApplicationEventsTestExecutionListener
`TestExecutionListener` which provides support for `ApplicationEvents`.
BeforeTestClassEvent
`TestContextEvent` published by the `EventPublishingTestExecutionListener` when `TestExecutionListener.beforeTestClass(TestContext)` is invoked.
BeforeTestExecutionEvent
`TestContextEvent` published by the `EventPublishingTestExecutionListener` when `TestExecutionListener.beforeTestExecution(TestContext)` is invoked.
BeforeTestMethodEvent
`TestContextEvent` published by the `EventPublishingTestExecutionListener` when `TestExecutionListener.beforeTestMethod(TestContext)` is invoked.
EventPublishingTestExecutionListener
`TestExecutionListener` that publishes test execution events to the `ApplicationContext` for the currently executing test.
PrepareTestInstanceEvent
`TestContextEvent` published by the `EventPublishingTestExecutionListener` when `TestExecutionListener.prepareTestInstance(TestContext)` is invoked.
RecordApplicationEvents
`@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, either from the test thread or its descendants.
TestContextEvent
Base class for events published by the `EventPublishingTestExecutionListener`.