use of org.thoughtcrime.securesms.storage.StorageSyncHelper.IdDifferenceResult in project Signal-Android by WhisperSystems.
the class StorageSyncHelperTest method findIdDifference_typeMismatch_allOverlap.
@Test
public void findIdDifference_typeMismatch_allOverlap() {
IdDifferenceResult result = StorageSyncHelper.findIdDifference(keyListOf(new HashMap<Integer, Integer>() {
{
put(100, 1);
put(200, 2);
}
}), keyListOf(new HashMap<Integer, Integer>() {
{
put(100, 1);
put(200, 1);
}
}));
assertTrue(result.getLocalOnlyIds().isEmpty());
assertTrue(result.getRemoteOnlyIds().isEmpty());
assertTrue(result.hasTypeMismatches());
}
Aggregations