Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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.

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

Added in API level 1

Syncs the specified provider.