use of com.fsck.k9.mail.Message in project k-9 by k9mail.
the class UidReverseComparatorTest method compare_withTwoMessagesWithInvalidUid_shouldReturnZero.
@Test
public void compare_withTwoMessagesWithInvalidUid_shouldReturnZero() throws Exception {
Message messageLeft = createMessageWithInvalidUid();
Message messageRight = createMessageWithInvalidUid();
int result = comparator.compare(messageLeft, messageRight);
assertEquals("result must be 0 when both arguments are a message with an invalid UID", 0, result);
}
use of com.fsck.k9.mail.Message in project k-9 by k9mail.
the class UidReverseComparatorTest method compare_withNullArgumentAndMessageWithNullUid_shouldReturnZero.
@Test
public void compare_withNullArgumentAndMessageWithNullUid_shouldReturnZero() throws Exception {
Message messageLeft = null;
Message messageRight = createMessageWithNullUid();
int result = comparator.compare(messageLeft, messageRight);
assertEquals("result must be 0 when both arguments are not a message with valid UID", 0, result);
}
use of com.fsck.k9.mail.Message in project k-9 by k9mail.
the class UidReverseComparatorTest method compare_withRightNullArgument_shouldReturnNegative.
@Test
public void compare_withRightNullArgument_shouldReturnNegative() throws Exception {
Message messageLeft = createMessageWithUid(1);
Message messageRight = null;
int result = comparator.compare(messageLeft, messageRight);
assertTrue("result must be < 0 when right argument is null", result < 0);
}
use of com.fsck.k9.mail.Message in project k-9 by k9mail.
the class UidReverseComparatorTest method compare_withNullArgumentAndMessageWithInvalidUid_shouldReturnZero.
@Test
public void compare_withNullArgumentAndMessageWithInvalidUid_shouldReturnZero() throws Exception {
Message messageLeft = null;
Message messageRight = createMessageWithInvalidUid();
int result = comparator.compare(messageLeft, messageRight);
assertEquals("result must be 0 when both arguments are not a message with valid UID", 0, result);
}
use of com.fsck.k9.mail.Message in project k-9 by k9mail.
the class UidReverseComparatorTest method compare_withMessageWithNullUidAndNullArgument_shouldReturnZero.
@Test
public void compare_withMessageWithNullUidAndNullArgument_shouldReturnZero() throws Exception {
Message messageLeft = createMessageWithNullUid();
Message messageRight = null;
int result = comparator.compare(messageLeft, messageRight);
assertEquals("result must be 0 when both arguments are not a message with valid UID", 0, result);
}
Aggregations