当前位置: 首页 > 文档资料 > JUnit 5 用户指南 >

1.2.5.6 异常处理

优质
小牛编辑
147浏览
2023-12-01

TestInstancePreDestroyCallback defines the API for Extensions that wish to process test instances after they have been used in tests and before they are destroyed.

Common use cases include cleaning dependencies that have been injected into the test instance, invoking custom de-initialization methods on the test instance, etc.