Since: API Level 1
package

android.test

Classes | Description

A framework for writing Android test cases and suites.

more...

Interfaces

PerformanceTestCaseMore complex interface performance for test cases. 
PerformanceTestCase.IntermediatesCallbacks for PerformanceTestCase
TestSuiteProviderImplementors will know how to get a test suite. 

Classes

ActivityInstrumentationTestCase<T extends Activity> This class is deprecated. new tests should be written using ActivityInstrumentationTestCase2, which provides more options for configuring the Activity under test  
ActivityInstrumentationTestCase2<T extends Activity>This class provides functional testing of a single activity. 
ActivityTestCaseThis is common code used to support Activity test cases. 
ActivityUnitTestCase<T extends Activity>This class provides isolated testing of a single activity. 
AndroidTestCaseExtend this if you need to access Resources or other things that depend on Activity Context. 
AndroidTestRunner 
ApplicationTestCase<T extends Application>This test case provides a framework in which you can test Application classes in a controlled environment. 
InstrumentationTestCaseA test case that has access to Instrumentation
InstrumentationTestRunnerAn Instrumentation that runs various types of TestCases against an Android package (application). 
InstrumentationTestSuiteA TestSuite that injects Instrumentation into InstrumentationTestCase before running them. 
IsolatedContextA mock context which prevents its users from talking to the rest of the device while stubbing enough methods to satify code that tries to talk to other packages. 
MoreAssertsContains additional assertion methods not found in JUnit. 
ProviderTestCase<T extends ContentProvider> This class is deprecated. this class extends InstrumentationTestCase but should extend AndroidTestCase. Use ProviderTestCase2, which corrects this problem, instead.  
ProviderTestCase2<T extends ContentProvider>This test case class provides a framework for testing a single ContentProvider and for testing your app code with an isolated content provider. 
RenamingDelegatingContextThis is a class which delegates to the given context, but performs database and file operations with a renamed database/file name (prefixes default names with a given prefix). 
ServiceTestCase<T extends Service>This test case provides a framework in which you can test Service classes in a controlled environment. 
SingleLaunchActivityTestCase<T extends Activity>If you would like to test a single activity with an InstrumentationTestCase, this provides some of the boiler plate to launch and finish the activity in setUp() and tearDown()
SyncBaseInstrumentationIf you would like to test sync a single provider with an InstrumentationTestCase, this provides some of the boiler plate in setUp() and tearDown()
TouchUtilsReusable methods for generating touch events. 
ViewAssertsSome useful assertions about views. 

Errors

AssertionFailedErrorThrown when an assertion failed. 
ComparisonFailureThrown when an assert equals for Strings failed.