# Print output for @column tags ?> MockAccountManager - Android SDK | Android Developers

Most visited


Recently visited


MockAccountManager

public class MockAccountManager
extends Object

java.lang.Object
   ↳ android.test.mock.MockAccountManager


This class is deprecated.
Use a mocking framework like Mockito. New tests should be written using the Android Testing Support Library.

A mock AccountManager class.

Provided for use by android.test.IsolatedContext.

Summary


Public methods

static AccountManager newMockAccountManager(Context context)

Create a new mock AccountManager instance.

Inherited methods

Public methods


newMockAccountManager

public static AccountManager newMockAccountManager (Context context)

Create a new mock AccountManager instance.

Parameters
context Context: the Context to which the returned object belongs.

Returns
AccountManager the new instance.

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.