@InjectMocks 注解会自动将mock fields 注入到被测试的object 中。 ... 在JUnit 5 中必须使用 @ExtendWith(MockitoExtension.class).
確定! 回上一頁