类 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
另请参阅:
  • 构造器详细资料

    • TestContextEvent

      public TestContextEvent(TestContext source)
      Create a new TestContextEvent.
      参数:
      source - the TestContext associated with this event (must not be null)
  • 方法详细资料

    • getSource

      public final TestContext getSource()
      Get the TestContext associated with this event.
      覆盖:
      getSource 在类中 EventObject
      返回:
      the TestContext associated with this event (never null)
      另请参阅:
    • getTestContext

      public final TestContext getTestContext()
      Alias for getSource().

      This method may be favored over getSource() — for example, to improve readability in SpEL expressions for event processing conditions.

      返回:
      the TestContext associated with this event (never null)
      另请参阅: