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

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.

主站蜘蛛池模板: 石渠县| 常德市| 五原县| 雷山县| 黑龙江省| 湖南省| 林周县| 隆子县| 乌鲁木齐县| 湘阴县| 寿光市| 芜湖县| 武乡县| 策勒县| 伊通| 凉山| 隆德县| 乌鲁木齐县| 博爱县| 都昌县| 鹿泉市| 乡城县| 始兴县| 石楼县| 枞阳县| 镇巴县| 南安市| 根河市| 县级市| 宁阳县| 福贡县| 新巴尔虎左旗| 滨海县| 洮南市| 凌云县| 新河县| 彭泽县| 三穗县| 湟中县| 正镶白旗| 东明县|