Method isEmpty in android.text.TextUtils not mocked
生活随笔
收集整理的這篇文章主要介紹了
Method isEmpty in android.text.TextUtils not mocked
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Method isEmpty in android.text.TextUtils not mocked
解決
在test/java目錄下,創建android.text.TextUtils類
package android.text;public class TextUtils {public static boolean isEmpty(CharSequence str) {if (str == null || str.equals("")) {return true;}return false;} }注意
關鍵是要個TextUtils同包名、同類名、同方法名。
總結
以上是生活随笔為你收集整理的Method isEmpty in android.text.TextUtils not mocked的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Java性能优化从20s优化到500ms
- 下一篇: 微信公众号HTML5接入腾讯云人脸核身