Search in sources :

Example 1 with JobStorage

use of org.thoughtcrime.securesms.jobmanager.persistence.JobStorage in project Signal-Android by WhisperSystems.

the class JobMigratorTest method simpleJobStorage.

private static JobStorage simpleJobStorage() {
    JobStorage jobStorage = mock(JobStorage.class);
    when(jobStorage.getAllJobSpecs()).thenReturn(new ArrayList<>(Collections.singletonList(new JobSpec("1", "f1", null, 1, 1, 1, 1, 1, "", null, false, false))));
    return jobStorage;
}
Also used : JobSpec(org.thoughtcrime.securesms.jobmanager.persistence.JobSpec) JobStorage(org.thoughtcrime.securesms.jobmanager.persistence.JobStorage)

Aggregations

JobSpec (org.thoughtcrime.securesms.jobmanager.persistence.JobSpec)1 JobStorage (org.thoughtcrime.securesms.jobmanager.persistence.JobStorage)1