MockAccountManager

public class MockAccountManager
extends Object

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


This class was deprecated in API level VanillaIceCream.
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.