android.test


Interfaces

PerformanceTestCase

More complex interface performance for test cases.

TestSuiteProvider

Implementors will know how to get a test suite.

Classes

ActivityInstrumentationTestCase

This class provides functional testing of a single activity.

ActivityInstrumentationTestCase2

This class provides functional testing of a single activity.

ActivityTestCase

This is common code used to support Activity test cases.

ActivityUnitTestCase

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

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 junit.

InstrumentationTestSuite

A junit.

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.

LaunchPerformanceBase

Base class for all launch performance Instrumentation classes.

LoaderTestCase

A convenience class for testing Loaders.

MoreAsserts

Contains additional assertion methods not found in JUnit.

ProviderTestCase

If you would like to test a single content provider with an InstrumentationTestCase, this provides some of the boiler plate in setUp and tearDown.

ProviderTestCase2

This test case class provides a framework for testing a single ContentProvider and for testing your app code with an isolated content provider.

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

This test case provides a framework in which you can test Service classes in a controlled environment.

SingleLaunchActivityTestCase

If you would like to test a single activity with an android.test.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.

Exceptions

AssertionFailedError

Thrown when an assertion failed.

ComparisonFailure

Thrown when an assert equals for Strings failed.

Annotations

FlakyTest

This annotation can be used on an android.test.InstrumentationTestCase's test methods.

RepetitiveTest

This annotation can be used on an android.test.InstrumentationTestCase's test methods.

UiThreadTest

This annotation can be used on an InstrumentationTestCase's test methods.