@InjectMocks: 创建一个实例,其余用@Mock(或@Spy)注解创建的mock将被注入到用该实例中。 注意:必须使用 @RunWith(MockitoJUnitRunner.class) 或 ...
確定! 回上一頁