To mock static methods you'll need a couple of libraries: ... mockStatic(StaticHelper.class); EasyMock.expect(StaticHelper.doSomething()).
確定! 回上一頁