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.
Failure callback functional interface
失败回调函数式接口
- Since:
- JDK 25, opencode-base-test V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Method Summary
Modifier and TypeMethodDescriptionvoidonFailure(TestContext context, Throwable throwable) Called when test fails 测试失败时调用
-
Method Details
-
onFailure
Called when test fails 测试失败时调用- Parameters:
context- the test context | 测试上下文throwable- the exception that caused failure | 导致失败的异常
-