mirror of
https://github.com/beemdevelopment/Aegis
synced 2024-09-06 16:03:30 +00:00
Pin Robolectric target SDKs to 32
This commit is contained in:
parent
4cd0d2de04
commit
012b66fe9b
|
@ -7,6 +7,7 @@ import static org.junit.Assert.assertTrue;
|
|||
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.os.Build;
|
||||
import android.preference.PreferenceManager;
|
||||
|
||||
import androidx.test.core.app.ApplicationProvider;
|
||||
|
@ -14,9 +15,11 @@ import androidx.test.core.app.ApplicationProvider;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.robolectric.RobolectricTestRunner;
|
||||
import org.robolectric.annotation.Config;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Config(sdk = { Build.VERSION_CODES.S_V2 })
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
public class PreferencesTest {
|
||||
@Test
|
||||
|
|
|
@ -7,6 +7,7 @@ import static org.junit.Assert.assertTrue;
|
|||
|
||||
import android.graphics.Rect;
|
||||
import android.media.Image;
|
||||
import android.os.Build;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
@ -18,6 +19,7 @@ import com.beemdevelopment.aegis.util.IOUtils;
|
|||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.robolectric.RobolectricTestRunner;
|
||||
import org.robolectric.annotation.Config;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
@ -25,6 +27,7 @@ import java.nio.ByteBuffer;
|
|||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import java.util.zip.GZIPInputStream;
|
||||
|
||||
@Config(sdk = { Build.VERSION_CODES.S_V2 })
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
public class QrCodeAnalyzerTest {
|
||||
private static final String _expectedUri = "otpauth://totp/neo4j:Charlotte?secret=B33WS2ALPT34K4BNY24AYROE4M&issuer=neo4j&algorithm=SHA1&digits=6&period=30";
|
||||
|
|
|
@ -33,7 +33,7 @@ import java.io.InputStream;
|
|||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@Config(sdk = { Build.VERSION_CODES.P })
|
||||
@Config(sdk = { Build.VERSION_CODES.S_V2 })
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
public class DatabaseImporterTest {
|
||||
private List<VaultEntry> _vectors;
|
||||
|
|
Loading…
Reference in a new issue