mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 00:37:47 +00:00
Revert "Fixing broken unit test for ConversationAdapter"
Fixes #6250 Commit 7286fd9 that broke this unit test was reverted so the change to this unit test has also to be reverted since the unit test currently fails. Closes #6308 This reverts commit 11463d410dca3fc4757b9f476f77f8a72be08f17.
This commit is contained in:
parent
25daf01307
commit
1d3f1cc79e
@ -24,11 +24,14 @@ public class ConversationAdapterTest extends BaseUnitTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetItemIdEquals() {
|
||||
when(cursor.getLong(anyInt())).thenReturn(1234L);
|
||||
public void testGetItemIdEquals() throws Exception {
|
||||
when(cursor.getString(anyInt())).thenReturn("SMS::1::1");
|
||||
long firstId = adapter.getItemId(cursor);
|
||||
when(cursor.getLong(anyInt())).thenReturn(4321L);
|
||||
when(cursor.getString(anyInt())).thenReturn("MMS::1::1");
|
||||
long secondId = adapter.getItemId(cursor);
|
||||
assertNotEquals(firstId, secondId);
|
||||
when(cursor.getString(anyInt())).thenReturn("MMS::2::1");
|
||||
long thirdId = adapter.getItemId(cursor);
|
||||
assertNotEquals(secondId, thirdId);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user