Package org.springframework.test.context.event
@NonNullApi
@NonNullFields
package org.springframework.test.context.event
Test event support classes for the Spring TestContext Framework.
-
ClassDescription
TestContextEvent
published by theEventPublishingTestExecutionListener
whenTestExecutionListener.afterTestClass(TestContext)
is invoked.TestContextEvent
published by theEventPublishingTestExecutionListener
whenTestExecutionListener.afterTestExecution(TestContext)
is invoked.TestContextEvent
published by theEventPublishingTestExecutionListener
whenTestExecutionListener.afterTestMethod(TestContext)
is invoked.ApplicationEvents
encapsulates all application events that were fired during the execution of a single test method.Holder class to expose the application events published during the execution of a test in the form of a thread-boundApplicationEvents
object.TestExecutionListener
which provides support forApplicationEvents
.TestContextEvent
published by theEventPublishingTestExecutionListener
whenTestExecutionListener.beforeTestClass(TestContext)
is invoked.TestContextEvent
published by theEventPublishingTestExecutionListener
whenTestExecutionListener.beforeTestExecution(TestContext)
is invoked.TestContextEvent
published by theEventPublishingTestExecutionListener
whenTestExecutionListener.beforeTestMethod(TestContext)
is invoked.TestExecutionListener
that publishes test execution events to theApplicationContext
for the currently executing test.TestContextEvent
published by theEventPublishingTestExecutionListener
whenTestExecutionListener.prepareTestInstance(TestContext)
is invoked.@RecordApplicationEvents
is a class-level annotation that is used to instruct the Spring TestContext Framework to record all application events that are published in theApplicationContext
during the execution of a single test.Base class for events published by theEventPublishingTestExecutionListener
.