Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fdb8655f authored by cketti's avatar cketti
Browse files

Remove Robolectric from a lot of tests

parent 7135afb1
Loading
Loading
Loading
Loading
+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",
+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;
@@ -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();

+0 −1
Original line number Diff line number Diff line
@@ -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}"
+0 −2
Original line number Diff line number Diff line
@@ -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;
@@ -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.
+0 −2
Original line number Diff line number Diff line
@@ -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