使用MockitoAnnotations.initMocks 来启动@Mock 和@InjectMocks对象.您的测试将类似于: @MockFastPowering fastPower;@InjectMocks控制器控制器;@前公共 ...
確定! 回上一頁