Search in sources :

Example 6 with SyncStatusAppState

use of org.odk.collect.android.formmanagement.matchexactly.SyncStatusAppState in project collect by opendatakit.

the class SyncStatusAppStateTest method finishSync_updatesFormsContentObserver.

@Test
public void finishSync_updatesFormsContentObserver() {
    SyncStatusAppState syncStatusAppState = new SyncStatusAppState(context);
    syncStatusAppState.startSync("projectId");
    syncStatusAppState.finishSync("projectId", null);
    verify(contentResolver).notifyChange(FormsContract.getUri("projectId"), null);
}
Also used : SyncStatusAppState(org.odk.collect.android.formmanagement.matchexactly.SyncStatusAppState) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)6 SyncStatusAppState (org.odk.collect.android.formmanagement.matchexactly.SyncStatusAppState)6 FormSourceException (org.odk.collect.forms.FormSourceException)2