O'Reilly logo

Android Application Development with Maven by Patroklos Papapetrou, Jonathan LALOU

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Unit testing of activities

Clearly, one of the most important parts of an Android application is the implementation of activities. Like we already discussed, all applications have activities, but only a few of them include domain models and business logic. The norm is to create applications that behave like clients of an existing backend system using web services.

There are two types of activities testing:

  • Unit testing: Each activity is tested in isolation from the rest of the application. This type of testing focuses on the layout and the expected components.
  • Integration testing (in Android, it's also called instrumentation): Each activity is tested as part of the overall application. This type of testing ensures that the activities are doing the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required