Package org.springframework.test.context.event
@NullMarked
package org.springframework.test.context.event
Test event support classes for the Spring TestContext Framework.
-
ClassDescription
TestContextEventpublished by theEventPublishingTestExecutionListenerwhenTestExecutionListener.afterTestClass(TestContext)is invoked.TestContextEventpublished by theEventPublishingTestExecutionListenerwhenTestExecutionListener.afterTestExecution(TestContext)is invoked.TestContextEventpublished by theEventPublishingTestExecutionListenerwhenTestExecutionListener.afterTestMethod(TestContext)is invoked.ApplicationEventsencapsulates 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-boundApplicationEventsobject.TestExecutionListenerwhich provides support forApplicationEvents.TestContextEventpublished by theEventPublishingTestExecutionListenerwhenTestExecutionListener.beforeTestClass(TestContext)is invoked.TestContextEventpublished by theEventPublishingTestExecutionListenerwhenTestExecutionListener.beforeTestExecution(TestContext)is invoked.TestContextEventpublished by theEventPublishingTestExecutionListenerwhenTestExecutionListener.beforeTestMethod(TestContext)is invoked.TestExecutionListenerthat publishes test execution events to theApplicationContextfor the currently executing test.TestContextEventpublished by theEventPublishingTestExecutionListenerwhenTestExecutionListener.prepareTestInstance(TestContext)is invoked.@RecordApplicationEventsis 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 theApplicationContextduring the execution of a single test, either from the test thread or its descendants.Base class for events published by theEventPublishingTestExecutionListener.