mockStatic (class)创建静态类的mock对象. 注意事项: 如果想对某个类的静态方法进行mock,则必须在PrepareForTest后面加上相应的类名,比如Utility.class.
確定! 回上一頁