Android APIs
public class

SyncBaseInstrumentation

extends InstrumentationTestCase
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ android.test.InstrumentationTestCase
         ↳ android.test.SyncBaseInstrumentation

Class Overview

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
SyncBaseInstrumentation()
Protected Methods
void cancelSyncsandDisableAutoSync()
void setUp()
Sets up the fixture, for example, open a network connection.
void syncProvider(Uri uri, String accountName, String authority)
Syncs the specified provider.
[Expand]
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

public SyncBaseInstrumentation ()

Added in API level 1

Protected Methods

protected void cancelSyncsandDisableAutoSync ()

Added in API level 1

protected void setUp ()

Added in API level 1

Sets up the fixture, for example, open a network connection. This method is called before a test is executed.

Throws
Exception

protected void syncProvider (Uri uri, String accountName, String authority)

Added in API level 1

Syncs the specified provider.

Throws
Exception