Search in sources :

Example 1 with SaveToDiskResult

use of org.odk.collect.android.tasks.SaveToDiskResult in project collect by opendatakit.

the class FormSaveViewModelTest method whenFormSaverFinishes.

private void whenFormSaverFinishes(int result, String message) {
    SaveToDiskResult saveToDiskResult = new SaveToDiskResult();
    saveToDiskResult.setSaveResult(result, true);
    saveToDiskResult.setSaveErrorMessage(message);
    formSaver.saveToDiskResult = saveToDiskResult;
    Robolectric.getBackgroundThreadScheduler().runOneTask();
}
Also used : SaveToDiskResult(org.odk.collect.android.tasks.SaveToDiskResult)

Aggregations

SaveToDiskResult (org.odk.collect.android.tasks.SaveToDiskResult)1