Add more tests

This commit is contained in:
cketti 2015-02-23 02:50:08 +01:00
parent a979accb54
commit d443a6d4eb

View file

@ -77,6 +77,21 @@ public class MessageReferenceTest {
assertFalse(messageReference.equals(object));
}
@SuppressWarnings("ObjectEqualsNull")
@Test
public void equalsWithNullShouldReturnFalse() {
MessageReference messageReference = createMessageReference("account", "folder", "uid");
assertFalse(messageReference.equals(null));
}
@Test
public void equalsWithSameMessageReferenceShouldReturnTrue() {
MessageReference messageReference = createMessageReference("account", "folder", "uid");
assertTrue(messageReference.equals(messageReference));
}
@Test
public void equalsWithMessageReferenceContainingSameDataShouldReturnTrue() {
MessageReference messageReferenceOne = createMessageReference("account", "folder", "uid");