mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Fix ConversationAdapterTest#testGetItemIdEquals()
Regression introduced at cb670d67
Fixes #6652
Closes #6779
// FREEBIE
This commit is contained in:
parent
338f8de787
commit
5e1d63696f
@ -25,12 +25,12 @@ public class ConversationAdapterTest extends BaseUnitTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetItemIdEquals() throws Exception {
|
public void testGetItemIdEquals() throws Exception {
|
||||||
when(cursor.getString(anyInt())).thenReturn("SMS::1::1");
|
when(cursor.getString(anyInt())).thenReturn(null).thenReturn("SMS::1::1");
|
||||||
long firstId = adapter.getItemId(cursor);
|
long firstId = adapter.getItemId(cursor);
|
||||||
when(cursor.getString(anyInt())).thenReturn("MMS::1::1");
|
when(cursor.getString(anyInt())).thenReturn(null).thenReturn("MMS::1::1");
|
||||||
long secondId = adapter.getItemId(cursor);
|
long secondId = adapter.getItemId(cursor);
|
||||||
assertNotEquals(firstId, secondId);
|
assertNotEquals(firstId, secondId);
|
||||||
when(cursor.getString(anyInt())).thenReturn("MMS::2::1");
|
when(cursor.getString(anyInt())).thenReturn(null).thenReturn("MMS::2::1");
|
||||||
long thirdId = adapter.getItemId(cursor);
|
long thirdId = adapter.getItemId(cursor);
|
||||||
assertNotEquals(secondId, thirdId);
|
assertNotEquals(secondId, thirdId);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user