to top
Android APIs
Added in API level 1
package

android.test.mock

Utility classes providing stubs or mocks of various Android framework building blocks.

For more information, see the Testing guide.

Classes

MockApplication A mock Application class. 
MockContentProvider Mock implementation of ContentProvider. 
MockContentResolver

An extension of ContentResolver that is designed for testing. 

MockContext A mock Context class. 
MockCursor

A mock Cursor class that isolates the test code from real Cursor implementation. 

MockDialogInterface A mock DialogInterface class. 
MockPackageManager A mock PackageManager class. 
MockResources A mock Resources class. 
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.