クラス RunAfterTestClassCallbacks

java.lang.ObjectSE
org.junit.runners.model.Statement
org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks

@DeprecatedSE(since="7.0") public class RunAfterTestClassCallbacks extends Statement
使用すべきではありません。
Spring Framework 7.0 以降、SpringExtension と JUnit Jupiter が優先される
RunAfterTestClassCallbacks はカスタム JUnit Statement であり、提供されている TestContextManagerafterTestClass() を呼び出すことにより、Spring TestContext フレームワークを JUnit 実行チェーンにプラグインできます。

注意 : このクラスには、JUnit 4.9 以上が必要です。

導入:
3.0
作成者:
Sam Brannen
関連事項:
  • コンストラクターの詳細

    • RunAfterTestClassCallbacks

      public RunAfterTestClassCallbacks(Statement next, TestContextManager testContextManager)
      使用すべきではありません。
      新しい RunAfterTestClassCallbacks ステートメントを作成します。
      パラメーター:
      next - 実行チェーンの次の Statement 
      testContextManager - afterTestClass() を呼び出す TestContextManager
  • メソッドの詳細

    • evaluate

      public void evaluate() throws ThrowableSE
      使用すべきではありません。
      実行 チェーン (通常は RunAfters のインスタンス) で次の Statement を評価し、スローされた例外をキャッチしてから、TestContextManager.afterTestClass() を呼び出します。

      afterTestClass() の呼び出しが例外をスローした場合、それも追跡されます。複数の例外が MultipleFailureException に結合されます。

      次で指定:
      クラス Statementevaluate 
      例外:
      ThrowableSE