diff --git a/app/src/test/java/com/stevesoltys/seedvault/metadata/MetadataManagerTest.kt b/app/src/test/java/com/stevesoltys/seedvault/metadata/MetadataManagerTest.kt index b9844d9e..fc289249 100644 --- a/app/src/test/java/com/stevesoltys/seedvault/metadata/MetadataManagerTest.kt +++ b/app/src/test/java/com/stevesoltys/seedvault/metadata/MetadataManagerTest.kt @@ -57,6 +57,7 @@ import kotlin.random.Random @Suppress("DEPRECATION") @RunWith(AndroidJUnit4::class) @Config( + sdk = [34], // TODO: Drop once robolectric supports 35 application = TestApp::class ) class MetadataManagerTest { diff --git a/app/src/test/java/com/stevesoltys/seedvault/plugins/saf/DocumentFileTest.kt b/app/src/test/java/com/stevesoltys/seedvault/plugins/saf/DocumentFileTest.kt index 2aead4e6..b29e82ce 100644 --- a/app/src/test/java/com/stevesoltys/seedvault/plugins/saf/DocumentFileTest.kt +++ b/app/src/test/java/com/stevesoltys/seedvault/plugins/saf/DocumentFileTest.kt @@ -24,6 +24,7 @@ import org.robolectric.annotation.Config @RunWith(AndroidJUnit4::class) @Config( + sdk = [34], // TODO: Drop once robolectric supports 35 application = TestApp::class ) internal class DocumentFileTest { diff --git a/app/src/test/java/com/stevesoltys/seedvault/plugins/webdav/WebDavStoragePluginTest.kt b/app/src/test/java/com/stevesoltys/seedvault/plugins/webdav/WebDavStoragePluginTest.kt index 8472fe5a..c5389a4a 100644 --- a/app/src/test/java/com/stevesoltys/seedvault/plugins/webdav/WebDavStoragePluginTest.kt +++ b/app/src/test/java/com/stevesoltys/seedvault/plugins/webdav/WebDavStoragePluginTest.kt @@ -28,6 +28,7 @@ import kotlin.random.Random @RunWith(AndroidJUnit4::class) @Config( + sdk = [34], // TODO: Drop once robolectric supports 35 application = TestApp::class ) internal class WebDavStoragePluginTest : TransportTest() { diff --git a/app/src/test/java/com/stevesoltys/seedvault/restore/AppSelectionManagerTest.kt b/app/src/test/java/com/stevesoltys/seedvault/restore/AppSelectionManagerTest.kt index 5333c1f9..d6c85b57 100644 --- a/app/src/test/java/com/stevesoltys/seedvault/restore/AppSelectionManagerTest.kt +++ b/app/src/test/java/com/stevesoltys/seedvault/restore/AppSelectionManagerTest.kt @@ -35,12 +35,16 @@ import org.junit.jupiter.api.Assertions.assertNull import org.junit.jupiter.api.Assertions.assertTrue import org.junit.jupiter.api.Assertions.fail import org.junit.runner.RunWith +import org.robolectric.annotation.Config import java.io.ByteArrayInputStream import java.io.IOException import kotlin.random.Random @RunWith(AndroidJUnit4::class) @OptIn(ExperimentalCoroutinesApi::class) +@Config( + sdk = [34] // TODO: Drop once robolectric supports 35 +) internal class AppSelectionManagerTest : TransportTest() { private val storagePluginManager: StoragePluginManager = mockk() diff --git a/app/src/test/java/com/stevesoltys/seedvault/restore/install/DeviceInfoTest.kt b/app/src/test/java/com/stevesoltys/seedvault/restore/install/DeviceInfoTest.kt index 66d36c78..ce9f5fa9 100644 --- a/app/src/test/java/com/stevesoltys/seedvault/restore/install/DeviceInfoTest.kt +++ b/app/src/test/java/com/stevesoltys/seedvault/restore/install/DeviceInfoTest.kt @@ -27,6 +27,7 @@ import kotlin.random.Random @RunWith(AndroidJUnit4::class) @Config( + sdk = [34], // TODO: Drop once robolectric supports 35 application = TestApp::class ) internal class DeviceInfoTest {