mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-30 23:00:09 -05:00
Add more tests
This commit is contained in:
parent
a979accb54
commit
d443a6d4eb
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user