Mockito does not initialize mock in test running with JUnit 5 in @BeforeAll annotated method

前端 未结 0 780
天涯浪人
天涯浪人 2021-01-03 02:57

Mockito does not initialize a mock run with the JUnit 5 in a @BeforeAll annotated method. It works if I change init method annotation to @BeforeEach. Tests are run within In

相关标签:
回答
  • 消灭零回复
提交回复
热议问题