クラス TestContextEvent

実装されたすべてのインターフェース:
SerializableSE
既知の直属サブクラス
AfterTestClassEventAfterTestExecutionEventAfterTestMethodEventBeforeTestClassEventBeforeTestExecutionEventBeforeTestMethodEventPrepareTestInstanceEvent

public abstract class TestContextEvent extends ApplicationEvent
EventPublishingTestExecutionListener によって発行されたイベントの基本クラス。
導入:
5.2
作成者:
Frank Scheffler, Sam Brannen
関連事項:
  • コンストラクターの詳細

    • TestContextEvent

      public TestContextEvent(TestContext source)
      新しい TestContextEvent を作成します。
      パラメーター:
      source - このイベントに関連付けられている TestContext (null であってはなりません)
  • メソッドの詳細

    • getSource

      public final TestContext getSource()
      このイベントに関連付けられている TestContext を取得します。
      オーバーライド:
      クラス EventObjectSEgetSource 
      戻り値:
      このイベントに関連付けられている TestContext (非 null)
      関連事項:
    • getTestContext

      public final TestContext getTestContext()
      getSource() のエイリアス。

      この方法は、getSource() よりも好まれる可能性があります。たとえば、イベント処理条件の SpEL 式の可読性を向上させるためです。

      戻り値:
      このイベントに関連付けられている TestContext (非 null)
      関連事項: