Loading app/core/src/test/java/com/fsck/k9/helper/ListHeadersTest.java +2 −4 Original line number Diff line number Diff line package com.fsck.k9.helper; import com.fsck.k9.RobolectricTest; import com.fsck.k9.mail.Address; import com.fsck.k9.mail.K9LibRobolectricTestRunner; import com.fsck.k9.mail.Message; import com.fsck.k9.mail.internet.MimeMessage; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; @RunWith(K9LibRobolectricTestRunner.class) public class ListHeadersTest { public class ListHeadersTest extends RobolectricTest { private static final String[] TEST_EMAIL_ADDRESSES = new String[] { "prettyandsimple@example.com", "very.common@example.com", Loading app/core/src/test/java/com/fsck/k9/helper/MailToTest.java +7 −10 Original line number Diff line number Diff line package com.fsck.k9.helper; import java.util.Arrays; import java.util.Collections; import java.util.List; import android.net.Uri; import com.fsck.k9.RobolectricTest; import com.fsck.k9.helper.MailTo.CaseInsensitiveParamWrapper; import com.fsck.k9.mail.Address; import com.fsck.k9.mail.K9LibRobolectricTestRunner; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import java.util.Arrays; import java.util.Collections; import java.util.List; import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertFalse; Loading @@ -23,8 +21,7 @@ import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; @RunWith(K9LibRobolectricTestRunner.class) public class MailToTest { public class MailToTest extends RobolectricTest { @Rule public ExpectedException exception = ExpectedException.none(); Loading mail/common/build.gradle +0 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,6 @@ dependencies { implementation "com.squareup.moshi:moshi:${versions.moshi}" testImplementation project(":mail:testing") testImplementation "org.robolectric:robolectric:${versions.robolectric}" testImplementation "junit:junit:${versions.junit}" testImplementation "com.google.truth:truth:${versions.truth}" testImplementation "org.mockito:mockito-inline:${versions.mockito}" Loading mail/common/src/test/java/com/fsck/k9/mail/AddressTest.java +0 −2 Original line number Diff line number Diff line Loading @@ -2,7 +2,6 @@ package com.fsck.k9.mail; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; Loading @@ -10,7 +9,6 @@ import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; @RunWith(K9LibRobolectricTestRunner.class) public class AddressTest { /** * test the possibility to parse "From:" fields with no email. Loading mail/common/src/test/java/com/fsck/k9/mail/Address_quoteAtoms.java +0 −2 Original line number Diff line number Diff line Loading @@ -2,12 +2,10 @@ package com.fsck.k9.mail; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.assertEquals; @RunWith(K9LibRobolectricTestRunner.class) public class Address_quoteAtoms { @Test public void testNoQuote() { Loading Loading
app/core/src/test/java/com/fsck/k9/helper/ListHeadersTest.java +2 −4 Original line number Diff line number Diff line package com.fsck.k9.helper; import com.fsck.k9.RobolectricTest; import com.fsck.k9.mail.Address; import com.fsck.k9.mail.K9LibRobolectricTestRunner; import com.fsck.k9.mail.Message; import com.fsck.k9.mail.internet.MimeMessage; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; @RunWith(K9LibRobolectricTestRunner.class) public class ListHeadersTest { public class ListHeadersTest extends RobolectricTest { private static final String[] TEST_EMAIL_ADDRESSES = new String[] { "prettyandsimple@example.com", "very.common@example.com", Loading
app/core/src/test/java/com/fsck/k9/helper/MailToTest.java +7 −10 Original line number Diff line number Diff line package com.fsck.k9.helper; import java.util.Arrays; import java.util.Collections; import java.util.List; import android.net.Uri; import com.fsck.k9.RobolectricTest; import com.fsck.k9.helper.MailTo.CaseInsensitiveParamWrapper; import com.fsck.k9.mail.Address; import com.fsck.k9.mail.K9LibRobolectricTestRunner; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import org.junit.runner.RunWith; import java.util.Arrays; import java.util.Collections; import java.util.List; import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertFalse; Loading @@ -23,8 +21,7 @@ import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; @RunWith(K9LibRobolectricTestRunner.class) public class MailToTest { public class MailToTest extends RobolectricTest { @Rule public ExpectedException exception = ExpectedException.none(); Loading
mail/common/build.gradle +0 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,6 @@ dependencies { implementation "com.squareup.moshi:moshi:${versions.moshi}" testImplementation project(":mail:testing") testImplementation "org.robolectric:robolectric:${versions.robolectric}" testImplementation "junit:junit:${versions.junit}" testImplementation "com.google.truth:truth:${versions.truth}" testImplementation "org.mockito:mockito-inline:${versions.mockito}" Loading
mail/common/src/test/java/com/fsck/k9/mail/AddressTest.java +0 −2 Original line number Diff line number Diff line Loading @@ -2,7 +2,6 @@ package com.fsck.k9.mail; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; Loading @@ -10,7 +9,6 @@ import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; @RunWith(K9LibRobolectricTestRunner.class) public class AddressTest { /** * test the possibility to parse "From:" fields with no email. Loading
mail/common/src/test/java/com/fsck/k9/mail/Address_quoteAtoms.java +0 −2 Original line number Diff line number Diff line Loading @@ -2,12 +2,10 @@ package com.fsck.k9.mail; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.assertEquals; @RunWith(K9LibRobolectricTestRunner.class) public class Address_quoteAtoms { @Test public void testNoQuote() { Loading