在通常使用 @Mock 和 @InjectMocks 批注的模拟中,要测试的类应使用 @RunWith(MockitoJUnitRunner.class) 运行。 @RunWith(MockitoJUnitRunner.class) public class ...
確定! 回上一頁