Deprecated in API level 24
SyncBaseInstrumentation
public
class
SyncBaseInstrumentation
extends InstrumentationTestCase
| java.lang.Object | ||||
| ↳ | junit.framework.Assert | |||
| ↳ | junit.framework.TestCase | |||
| ↳ | android.test.InstrumentationTestCase | |||
| ↳ | android.test.SyncBaseInstrumentation | |||
This class was deprecated
in API level 24.
Use
InstrumentationRegistry instead. New tests should be written using the
Android Testing Support Library.
If you would like to test sync a single provider with an
InstrumentationTestCase, this provides some of the boiler plate in setUp() and
InstrumentationTestCase.tearDown().
Summary
Public constructors | |
|---|---|
SyncBaseInstrumentation()
|
|
Protected methods | |
|---|---|
void
|
cancelSyncsandDisableAutoSync()
|
void
|
setUp()
|
void
|
syncProvider(Uri uri, String accountName, String authority)
Syncs the specified provider. |
Inherited methods | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
From class
android.test.InstrumentationTestCase
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
From class
junit.framework.TestCase
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
From class
junit.framework.Assert
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
From class
java.lang.Object
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
From interface
junit.framework.Test
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public constructors
SyncBaseInstrumentation
public SyncBaseInstrumentation ()
Protected methods
cancelSyncsandDisableAutoSync
Deprecated in API level 24
protected void cancelSyncsandDisableAutoSync ()
syncProvider
Deprecated in API level 24
protected void syncProvider (Uri uri, String accountName, String authority)
Syncs the specified provider.
| Parameters | |
|---|---|
uri |
Uri |
accountName |
String |
authority |
String |
| Throws | |
|---|---|
|
java.lang.Exception |
Exception |
|