mockito模擬依賴注入DI依賴注入,Mockito @InjectMocks annotations allow us to inject mocked dependencies in the annotated class mocked object. This is useful when we have external dependencies in the class we want to mock. We can specify the mock object
时间:2023-11-19 | 阅读:24