基本上,我想嘲笑 MyQueryClass 。 所以在我的testing案例中,我使用了: MyQueryClass query = PowerMockito.mock(MyQueryClass.class); PowerMockito.whenNew( ...
確定! 回上一頁