Added in API level 1
Deprecated in API level 24

SyncBaseInstrumentation


open class SyncBaseInstrumentation : InstrumentationTestCase
kotlin.Any
   ↳ android.test.InstrumentationTestCase
   ↳ android.test.SyncBaseInstrumentation

If you would like to test sync a single provider with an InstrumentationTestCase, this provides some of the boiler plate in setUp and tearDown.

Summary

Public constructors

Protected methods
open Unit

open Unit

open Unit
syncProvider(uri: Uri!, accountName: String!, authority: String!)

Syncs the specified provider.

Inherited functions

Public constructors

SyncBaseInstrumentation

SyncBaseInstrumentation()

Protected methods

cancelSyncsandDisableAutoSync

Added in API level 1
protected open fun cancelSyncsandDisableAutoSync(): Unit

Deprecated: Deprecated in Java.

setUp

Added in API level 1
protected open fun setUp(): Unit

Deprecated: Deprecated in Java.

syncProvider

Added in API level 1
protected open fun syncProvider(
    uri: Uri!,
    accountName: String!,
    authority: String!
): Unit

Deprecated: Deprecated in Java.

Syncs the specified provider.

Exceptions
java.lang.Exception