Android Testing Fundamentals 1, unit test

来源:互联网 发布:java简单工厂模式缺点 编辑:程序博客网 时间:2024/04/29 20:22

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

1 0