Update Robolectric to 4.3.1

This commit is contained in:
cketti 2020-07-15 19:40:32 +02:00
parent b4df806291
commit 057d1c804d
3 changed files with 1 additions and 29 deletions

View file

@ -33,10 +33,8 @@ import org.openintents.openpgp.OpenPgpApiManager;
import org.openintents.openpgp.OpenPgpApiManager.OpenPgpApiManagerCallback;
import org.openintents.openpgp.OpenPgpApiManager.OpenPgpProviderState;
import org.openintents.openpgp.util.OpenPgpApi;
import org.openintents.openpgp.util.ShadowOpenPgpAsyncTask;
import org.robolectric.Robolectric;
import org.robolectric.RuntimeEnvironment;
import org.robolectric.annotation.Config;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
@ -51,7 +49,6 @@ import static org.mockito.Mockito.when;
@SuppressWarnings("ConstantConditions")
@Config(shadows = { ShadowOpenPgpAsyncTask.class })
public class RecipientPresenterTest extends K9RobolectricTest {
private static final ReplyToAddresses TO_ADDRESSES = new ReplyToAddresses(Address.parse("to@example.org"));
private static final List<Address> ALL_TO_ADDRESSES = Arrays.asList(Address.parse("allTo@example.org"));

View file

@ -1,25 +0,0 @@
package org.openintents.openpgp.util;
import java.util.concurrent.Executor;
import android.content.Intent;
import android.os.AsyncTask;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
import org.robolectric.shadows.ShadowAsyncTask;
@Implements(OpenPgpApi.OpenPgpAsyncTask.class)
public class ShadowOpenPgpAsyncTask extends ShadowAsyncTask<Void, Integer, Intent> {
@RealObject
private OpenPgpApi.OpenPgpAsyncTask realAsyncTask;
@Implementation
public AsyncTask<Void, Integer, Intent> executeOnExecutor(Executor executor, Void... params) {
return super.execute(params);
}
}

View file

@ -37,7 +37,7 @@ buildscript {
'androidxTestRunner': '1.2.0',
'junit': '4.13',
'robolectric': '4.2.1',
'robolectric': '4.3.1',
'mockito': '3.3.3',
'mockitoKotlin': '2.2.0',
'truth': '1.0.1'