public void testChangeInConversationIllegalId() { assertEquals(mMessageList.getAdapter().getCount(), mConversation.getMessageCount()); try { mActivity.onConversationChanged(IdManager.getInstance().newConversationId()); fail("Exception should have been thrown"); } catch (IllegalArgumentException e) { } }
public void testChangeInConversationNull() { assertEquals(mMessageList.getAdapter().getCount(), mConversation.getMessageCount()); try { mActivity.onConversationChanged(null); fail("Exception should have been thrown"); } catch (NullArgumentException e) { } }
public void testSetup() { assertNotNull( "Not setup correctly", DefaultDialogData.getInstance().getConversation(mConversation.getId())); assertEquals("Not setup correctly", 0, mConversation.getMessageCount()); assertNotNull(mMessageList); assertNotNull(mMessageContent); assertNotNull(mSendButton); }