Since: API Level 1
package

android.test

Classes | Description

A framework for writing Android test cases and suites.

more...

Interfaces

PerformanceTestCase More complex interface performance for test cases. 
PerformanceTestCase.Intermediates Callbacks for PerformanceTestCase
TestSuiteProvider Implementors 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. 
ActivityTestCase This is common code used to support Activity test cases. 
ActivityUnitTestCase<T extends Activity> This class provides isolated testing of a single activity. 
AndroidTestCase Extend 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. 
InstrumentationTestCase A test case that has access to Instrumentation
InstrumentationTestRunner An Instrumentation that runs various types of TestCases against an Android package (application). 
InstrumentationTestSuite A TestSuite that injects Instrumentation into InstrumentationTestCase before running them. 
IsolatedContext A 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. 
MoreAsserts Contains 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 TestCase class provides a framework for isolated testing of a single ContentProvider. 
RenamingDelegatingContext This 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()
SyncBaseInstrumentation If you would like to test sync a single provider with an InstrumentationTestCase, this provides some of the boiler plate in setUp() and tearDown()
TouchUtils Reusable methods for generating touch events. 
ViewAsserts Some useful assertions about views. 

Errors

AssertionFailedError Thrown when an assertion failed. 
ComparisonFailure Thrown when an assert equals for Strings failed.