类 TestContextEvent
java.lang.Object
java.util.EventObject
cn.taketoday.context.ApplicationEvent
cn.taketoday.test.context.event.TestContextEvent
- 所有已实现的接口:
Serializable
- 直接已知子类:
AfterTestClassEvent,AfterTestExecutionEvent,AfterTestMethodEvent,BeforeTestClassEvent,BeforeTestExecutionEvent,BeforeTestMethodEvent,PrepareTestInstanceEvent
public abstract class TestContextEvent
extends cn.taketoday.context.ApplicationEvent
Base class for events published by the
EventPublishingTestExecutionListener.- 从以下版本开始:
- 4.0
- 作者:
- Frank Scheffler, Sam Brannen
- 另请参阅:
-
字段概要
从类继承的字段 java.util.EventObject
source -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明final TestContextGet theTestContextassociated with this event.final TestContextAlias forgetSource().从类继承的方法 cn.taketoday.context.ApplicationEvent
getTimestamp从类继承的方法 java.util.EventObject
toString
-
构造器详细资料
-
TestContextEvent
Create a newTestContextEvent.- 参数:
source- theTestContextassociated with this event (must not benull)
-
-
方法详细资料
-
getSource
Get theTestContextassociated with this event.- 覆盖:
getSource在类中EventObject- 返回:
- the
TestContextassociated with this event (nevernull) - 另请参阅:
-
getTestContext
Alias forgetSource().This method may be favored over
getSource()— for example, to improve readability in SpEL expressions for event processing conditions.- 返回:
- the
TestContextassociated with this event (nevernull) - 另请参阅:
-