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

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.

主站蜘蛛池模板: 兴安盟| 徐汇区| 汤阴县| 阿克苏市| 班戈县| 西平县| 泸定县| 临沭县| 峨眉山市| 东丽区| 上饶市| 平泉县| 咸丰县| 合阳县| 临泽县| 博兴县| 桦南县| 民丰县| 时尚| 松阳县| 三门县| 东安县| 宁海县| 武隆县| 乐清市| 奎屯市| 鲁甸县| 巩义市| 松原市| 武义县| 老河口市| 德庆县| 宜兰县| 柏乡县| 福建省| 新昌县| 舒城县| 辉南县| 和政县| 太原市| 慈利县|