Skip to content
Snippets Groups Projects
Commit a019a9da authored by Taesu Lee's avatar Taesu Lee
Browse files

Fix GetOrCreateConversationActionTest failure


Test: atest messagingtests

Change-Id: I62a30f50a64a6e6e3f7ce21c0919cb2873654bc2
Signed-off-by: default avatarTaesu Lee <taesu82.lee@samsung.com>
parent 5500d335
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,8 @@ public class GetOrCreateConversationActionTest extends BugleTestCase {
assertTrue(result instanceof String);
// Make sure that we created a new conversation
assertEquals(TestDataFactory.NUM_TEST_CONVERSATIONS, Integer.parseInt((String)result));
int expectedConversationId = TestDataFactory.NUM_TEST_CONVERSATIONS + 1;
assertEquals(expectedConversationId, Integer.parseInt((String) result));
// Now get the conversation that we just created again
monitor = GetOrCreateConversationAction.getOrCreateConversation(participants, null,
......@@ -103,7 +104,7 @@ public class GetOrCreateConversationActionTest extends BugleTestCase {
final String conversationId = (String) result;
// Make sure that we found the same conversation id
assertEquals(TestDataFactory.NUM_TEST_CONVERSATIONS, Integer.parseInt((String)result));
assertEquals(expectedConversationId, Integer.parseInt((String) result));
final ArrayList<ParticipantData> conversationParticipants =
BugleDatabaseOperations.getParticipantsForConversation(db, conversationId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment