Stay organized with collections
Save and categorize content based on your preferences.
android.test.mock
Classes
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# android.test.mock\n=================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/test/mock/package-summary \"View this page in Java\")\n\nClasses\n-------\n\n|--------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|\n| [MockAccountManager](/reference/kotlin/android/test/mock/MockAccountManager) | A mock [android.accounts.AccountManager](../../accounts/AccountManager.html#) class. |\n| [MockApplication](/reference/kotlin/android/test/mock/MockApplication) | A mock [android.app.Application](../../app/Application.html#) class. |\n| [MockContentProvider](/reference/kotlin/android/test/mock/MockContentProvider) | Mock implementation of ContentProvider. |\n| [MockContentResolver](/reference/kotlin/android/test/mock/MockContentResolver) | An extension of [android.content.ContentResolver](../../content/ContentResolver.html#) that is designed for testing. |\n| [MockContext](/reference/kotlin/android/test/mock/MockContext) | A mock [android.content.Context](../../content/Context.html#) class. |\n| [MockCursor](/reference/kotlin/android/test/mock/MockCursor) | A mock [android.database.Cursor](../../database/Cursor.html#) class that isolates the test code from real Cursor implementation. |\n| [MockDialogInterface](/reference/kotlin/android/test/mock/MockDialogInterface) | A mock [android.content.DialogInterface](../../content/DialogInterface.html#) class. |\n| [MockPackageManager](/reference/kotlin/android/test/mock/MockPackageManager) | A mock [android.content.pm.PackageManager](../../content/pm/PackageManager.html#) class. |\n| [MockResources](/reference/kotlin/android/test/mock/MockResources) | A mock [android.content.res.Resources](../../content/res/Resources.html#) class. |\n| [MockService](/reference/kotlin/android/test/mock/MockService) | A mock [android.app.Service](../../app/Service.html#) class. |"]]