Interface TestContext.FailureCallback

Enclosing class:
TestContext
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface TestContext.FailureCallback
Failure callback functional interface 失败回调函数式接口
Since:
JDK 25, opencode-base-test V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onFailure(TestContext context, Throwable throwable)
    Called when test fails 测试失败时调用
  • Method Details

    • onFailure

      void onFailure(TestContext context, Throwable throwable)
      Called when test fails 测试失败时调用
      Parameters:
      context - the test context | 测试上下文
      throwable - the exception that caused failure | 导致失败的异常