Revert "Fixing broken unit test for ConversationAdapter"
Fixes #6250 Commit7286fd9
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 commit11463d410d
.
This commit is contained in:
parent
25daf01307
commit
1d3f1cc79e
1 changed files with 6 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue