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

1.2.5.5 测试生命周期回调

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

TestInstancePostProcessor defines the API for Extensions that wish to post process test instances.

Common use cases include injecting dependencies into the test instance, invoking custom initialization methods on the test instance, etc.

For a concrete example, consult the source code for the MockitoExtension and the SpringExtension.