我正在为一个使用android.util.Base64的类编写单元测试,我得到了这个错误: java.lang.RuntimeException: Method encode in android.util.Base64See http://g.co/androidstudio/not-mocked for details.
at android.util.Base64.encode(Base64.java) 以下是使用encode()方法
我的班: private static final CustomLogger LOGGER = new CustomLogger(Util.class);LOGGER.error("Exception in DB Commit", sqlException.getMessage(), sqlException); }我的单元测试用例类util;