use of com.zegoggles.smssync.contacts.ContactGroup in project sms-backup-plus by jberkel.
the class BackupTaskTest method shouldSkipItems.
@Test
public void shouldSkipItems() throws Exception {
when(fetcher.getMostRecentTimestamp(any(DataType.class))).thenReturn(-23L);
BackupState finalState = task.doInBackground(new BackupConfig(store, 0, 100, new ContactGroup(-1), BackupType.SKIP, EnumSet.of(SMS), false));
verify(dataTypePreferences).setMaxSyncedDate(DataType.SMS, -23);
verifyZeroInteractions(dataTypePreferences);
assertThat(finalState).isNotNull();
assertThat(finalState.isFinished()).isTrue();
}
Aggregations