Build 1.0_r1(from source)

android.test
Class SyncBaseInstrumentation

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by android.test.InstrumentationTestCase
              extended by android.test.SyncBaseInstrumentation
All Implemented Interfaces:
Test

public class SyncBaseInstrumentation
extends InstrumentationTestCase

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().


Field Summary
(package private)  ContentResolver mContentResolver
           
 
Constructor Summary
SyncBaseInstrumentation()
           
 
Method Summary
protected  void cancelSyncsandDisableAutoSync()
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
protected  void syncProvider(Uri uri, String account, String authority)
          Syncs the specified provider.
 
Methods inherited from class android.test.InstrumentationTestCase
getInstrumentation, injectInsrumentation, launchActivity, runTest, sendKeys, sendKeys, sendRepeatedKeys, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mContentResolver

ContentResolver mContentResolver
Constructor Detail

SyncBaseInstrumentation

public SyncBaseInstrumentation()
Method Detail

setUp

protected void setUp()
              throws Exception
Description copied from class: TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.

Overrides:
setUp in class TestCase
Throws:
Exception

syncProvider

protected void syncProvider(Uri uri,
                            String account,
                            String authority)
                     throws Exception
Syncs the specified provider.

Throws:
Exception

cancelSyncsandDisableAutoSync

protected void cancelSyncsandDisableAutoSync()

Build 1.0_r1(from source)

Please submit a feedback, bug or feature