1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

Remove comments

This commit is contained in:
cketti 2015-02-23 02:23:00 +01:00
parent 084e7a1687
commit af491fdb41

View File

@ -16,10 +16,7 @@ import static junit.framework.Assert.assertTrue;
@RunWith(AndroidJUnit4.class)
public class MessageReferenceTest {
/**
* Typically happens during forwards. (You have a reference, but no flag since we don't currently consider
* FORWARDED a flag.)
*/
@Test
public void checkIdentityStringFromMessageReferenceWithoutFlag() {
MessageReference mr = new MessageReference();
@ -30,9 +27,6 @@ public class MessageReferenceTest {
assertEquals("!:byBoYWkh:Zm9sZGVy:MTAxMDEwMTA=", mr.toIdentityString());
}
/**
* Typically happens during replies.
*/
@Test
public void checkIdentityStringFromMessageReferenceWithFlag() {
MessageReference mr = new MessageReference();
@ -75,28 +69,23 @@ public class MessageReferenceTest {
@Test(expected = MessagingException.class)
public void parseIdentityStringWithCorruptFlag() throws MessagingException {
// Corruption in the Flag should throw MessagingException.
new MessageReference("!:%^&%^*$&$by&(BYWkh:Zm9%^@sZGVy:MT-35#$AxMDEwMTA=:ANSWE!RED");
}
@Test
public void equalsWithAnObjectShouldReturnFalse() {
// A MessageReference :
MessageReference m = new MessageReference();
// And another Object :
Object o = new Object();
// Asserting it is not equals, as not an instance of MessageReference:
assertFalse(m.equals(o));
}
@Test
public void equalsWithMessageReferenceContainingSameDataShouldReturnTrue() {
// First MessageReference :
MessageReference m1 = new MessageReference();
m1.accountUuid = "acc1";
m1.folderName = "folder1";
m1.uid = "uid1";
// Same MessageReference than m1 :
MessageReference m2 = new MessageReference();
m2.accountUuid = "acc1";
m2.folderName = "folder1";
@ -108,10 +97,9 @@ public class MessageReferenceTest {
@Test
public void equalsWithMessageReferenceContainingDifferentAccountUuidShouldReturnFalse() {
// First MessageReference :
MessageReference m1 = new MessageReference();
m1.accountUuid = "acc1";
// A MessageReference with another accountUuid :
MessageReference m2 = new MessageReference();
m2.accountUuid = "acc2";
@ -121,10 +109,9 @@ public class MessageReferenceTest {
@Test
public void equalsWithMessageReferenceContainingDifferentFolderNameShouldReturnFalse() {
// First MessageReference :
MessageReference m1 = new MessageReference();
m1.folderName = "folder1";
// A MessageReference with another folderName :
MessageReference m2 = new MessageReference();
m2.folderName = "folder2";
@ -134,10 +121,9 @@ public class MessageReferenceTest {
@Test
public void equalsWithMessageReferenceContainingDifferentUidShouldReturnFalse() {
// First MessageReference :
MessageReference m1 = new MessageReference();
m1.uid = "uid1";
// A MessageReference with another uid :
MessageReference m2 = new MessageReference();
m2.uid = "uid2";