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 account, 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 ()

Protected Methods

protected void cancelSyncsandDisableAutoSync ()

protected void setUp ()

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 account, String authority)

Syncs the specified provider.

Throws
Exception