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();
}
Aggregations