mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-31 07:10:14 -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));
|
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
|
@Test
|
||||||
public void equalsWithMessageReferenceContainingSameDataShouldReturnTrue() {
|
public void equalsWithMessageReferenceContainingSameDataShouldReturnTrue() {
|
||||||
MessageReference messageReferenceOne = createMessageReference("account", "folder", "uid");
|
MessageReference messageReferenceOne = createMessageReference("account", "folder", "uid");
|
||||||
|
Loading…
Reference in New Issue
Block a user