Mockito 很强大, 但是它不支持静态方法.所以, 就用Powermock了. ... public void helloTest(){ PowerMockito.when(mainService.hello()).
確定! 回上一頁