程序包 cn.taketoday.test.context.event
package cn.taketoday.test.context.event
Test event support classes for the TestContext Framework.
-
类说明
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.ApplicationListenerthat listens to all events and adds them to the currentApplicationEventsinstance if registered for the current thread.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.Factory that exposes the currentApplicationEventsobject on demand.TestContextEventpublished by theEventPublishingTestExecutionListenerwhenTestExecutionListener.beforeTestClass(TestContext)is invoked.TestContextEventpublished by theEventPublishingTestExecutionListenerwhenTestExecutionListener.beforeTestExecution(TestContext)is invoked.TestContextEventpublished by theEventPublishingTestExecutionListenerwhenTestExecutionListener.beforeTestMethod(TestContext)is invoked.Default implementation ofApplicationEvents.TestExecutionListenerthat publishes test execution events to theApplicationContextfor the currently executing test.TestContextEventpublished by theEventPublishingTestExecutionListenerwhenTestExecutionListener.prepareTestInstance(TestContext)is invoked.@RecordApplicationEventsis a class-level annotation that is used to instruct the Infra 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.