最常见的需求:mock static方法,也是采用powerMock的最大理由。 ... mockStatic(Static.class); // mock 有返回值的static方法 ...
確定! 回上一頁