![Different mocks are used for @Mock and @InjectMock when using @TestInstance( TestInstance.Lifecycle.PER_CLASS) of jUnit5 · Issue #1437 · mockito/mockito · GitHub Different mocks are used for @Mock and @InjectMock when using @TestInstance( TestInstance.Lifecycle.PER_CLASS) of jUnit5 · Issue #1437 · mockito/mockito · GitHub](https://user-images.githubusercontent.com/1970922/43034611-e87d9f62-8cdf-11e8-8ee9-b2ae3ed6288f.png)
Different mocks are used for @Mock and @InjectMock when using @TestInstance( TestInstance.Lifecycle.PER_CLASS) of jUnit5 · Issue #1437 · mockito/mockito · GitHub
Parallel execution and @TestInstance(PER_CLASS) result in concurrency issues for instance fields mutated in test and lifecycle methods · Issue #1511 · junit-team/junit5 · GitHub
![JUnit 5 测试问题throws java.lang.Exception' must be static unless the test class is annotated with @TestInstance(Lifecycle.PER_CLASS )_mb5fe94d44e2c3a的技术博客_51CTO博客 JUnit 5 测试问题throws java.lang.Exception' must be static unless the test class is annotated with @TestInstance(Lifecycle.PER_CLASS )_mb5fe94d44e2c3a的技术博客_51CTO博客](https://s2.51cto.com/images/blog/202108/06/2da856cc283d1c1b8f8e67f2017c4f7f.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_30,g_se,x_10,y_10,shadow_20,type_ZmFuZ3poZW5naGVpdGk=)