Fix GetOrCreateConversationActionTest failure am: a019a9da5c am: 3616fb5b3e
am: b95a19ca46
Change-Id: I9292b64d99bafecb52479acfb9877dc6cb4dd0eb
This commit is contained in:
+3
-2
@@ -85,7 +85,8 @@ public class GetOrCreateConversationActionTest extends BugleTestCase {
|
|||||||
assertTrue(result instanceof String);
|
assertTrue(result instanceof String);
|
||||||
|
|
||||||
// Make sure that we created a new conversation
|
// 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
|
// Now get the conversation that we just created again
|
||||||
monitor = GetOrCreateConversationAction.getOrCreateConversation(participants, null,
|
monitor = GetOrCreateConversationAction.getOrCreateConversation(participants, null,
|
||||||
@@ -103,7 +104,7 @@ public class GetOrCreateConversationActionTest extends BugleTestCase {
|
|||||||
final String conversationId = (String) result;
|
final String conversationId = (String) result;
|
||||||
|
|
||||||
// Make sure that we found the same conversation id
|
// 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 =
|
final ArrayList<ParticipantData> conversationParticipants =
|
||||||
BugleDatabaseOperations.getParticipantsForConversation(db, conversationId);
|
BugleDatabaseOperations.getParticipantsForConversation(db, conversationId);
|
||||||
|
|||||||
Reference in New Issue
Block a user