官术网_书友最值得收藏!

Chapter 2. Understanding Testing with the Android SDK

We now know how to create tests inside an Android project and how to run these tests. It is now time to start digging a bit deeper to recognize the building blocks available to create more useful tests.

In this second chapter, we will be covering the following topics:

  • Common assertions
  • View assertions
  • Other assertion types
  • Helpers to test User Interfaces
  • Mock objects
  • Instrumentation
  • TestCase class hierarchies
  • Using external libraries

We will be analyzing these components and showing examples of their use when applicable. The examples in this chapter are intentionally split from the original Android project that contains them. This is done to let you concentrate and focus only on the subject being presented, though the complete examples in a single project can be downloaded as explained later. Right now, we are interested in the trees and not the forest.

Along with the examples presented, we will be identifying reusable common patterns that will help you in the creation of tests for your own projects.

主站蜘蛛池模板: 梁山县| 府谷县| 连云港市| 兴安县| 汉源县| 阿瓦提县| 砚山县| 湖南省| 巴彦县| 都安| 渭南市| 全南县| 通渭县| 长岛县| 高阳县| 临武县| 邹平县| 兴城市| 榆林市| 苏尼特右旗| 芒康县| 辽宁省| 林口县| 江陵县| 饶河县| 宜黄县| 防城港市| 玉田县| 勃利县| 苏尼特左旗| 博爱县| 永顺县| 漳浦县| 衡南县| 江津市| 南溪县| 嘉禾县| 苍山县| 阜南县| 清镇市| 信宜市|