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.