Android(安卓)Testing Fundamentals 1, unit test
16lz
2021-12-04
Android 的单元测试case是Component-specific的。在写case时应该针对组件的类型选择适当的测试基类。(注,Android does not provide a separate test case class for BroadcastReceiver.)
核心类图如下:
相关辅助类:
Assert
MoreAsserts
ViewAsserts
Demo see https://github.com/cheyiliu/androidUnitTest
更多参考:
http://developer.android.com/tools/testing/testing_android.html
http://blog.csdn.net/fox64194167/article/details/7542605
更多相关文章
- Android的焦点(Focus)问题
- Android(安卓)studio无法更新 提示网络连接失败
- Android面试题集锦 (陆续更新)
- Android(安卓)中带有进度条效果的按钮(Button)
- android sdk setup时呈现:Failed to fetch URL https://dl-ssl.g
- 新建android工程 没有R.java文件
- Android四大基本组件介绍与生命周期
- 新建android工程 没有R.java文件
- android开发过程遇到的问题和解决方案(不断更新)