mockStatic (FinalSampleUtils.class); //mock不带参数的static方法 mocked.when(FinalSampleUtils::foo).thenReturn("bbb"); //mock带参数的static ...
確定! 回上一頁