Android uses, like we already saw, JUnit 3. It is the underlying framework to support instrumentation testing execution. All the tests you will write need to extend one of the following classes that extend the basic class ActivityTestCase
:
ActivityInstrumentationTestCase2
: This class is used for running activity testsProviderTestCase2
: This class is used for running tests of content providers and making sure that your tests always run against a clean datasetServiceTestCase
: This class is used for validating the various states of your services