aboutsummaryrefslogtreecommitdiff
path: root/app/src/test/java/dev/msfjarvis
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-12-03 00:39:54 +0530
committerGitHub <noreply@github.com>2021-12-02 19:09:54 +0000
commit1ade4eaf645b4272ac25f2aa055c1368acd43da7 (patch)
treef0ce5c025f6f57b68a1a20e11a212ea69b766372 /app/src/test/java/dev/msfjarvis
parent99c7913a489f8c28f7f7568db838f9ffdcaa27f0 (diff)
Cleanup dependency declarations and upgrade to Kotlin 1.6.0 (#1565)
Diffstat (limited to 'app/src/test/java/dev/msfjarvis')
-rw-r--r--app/src/test/java/dev/msfjarvis/aps/util/settings/MigrationsTest.kt12
-rw-r--r--app/src/test/java/dev/msfjarvis/aps/util/totp/UriTotpFinderTest.kt2
-rw-r--r--app/src/test/java/dev/msfjarvis/aps/util/viewmodel/StrictDomainRegexTest.kt2
3 files changed, 8 insertions, 8 deletions
diff --git a/app/src/test/java/dev/msfjarvis/aps/util/settings/MigrationsTest.kt b/app/src/test/java/dev/msfjarvis/aps/util/settings/MigrationsTest.kt
index 4e9f8b17..c37eb626 100644
--- a/app/src/test/java/dev/msfjarvis/aps/util/settings/MigrationsTest.kt
+++ b/app/src/test/java/dev/msfjarvis/aps/util/settings/MigrationsTest.kt
@@ -11,12 +11,12 @@ import android.content.SharedPreferences
import androidx.core.content.edit
import com.github.ivanshafran.sharedpreferencesmock.SPMockBuilder
import dev.msfjarvis.aps.util.extensions.getString
-import org.junit.Assert.assertEquals
-import org.junit.Assert.assertFalse
-import org.junit.Assert.assertNull
-import org.junit.Before
+import kotlin.test.BeforeTest
+import kotlin.test.Test
+import kotlin.test.assertEquals
+import kotlin.test.assertFalse
+import kotlin.test.assertNull
import org.junit.Rule
-import org.junit.Test
import org.junit.rules.TemporaryFolder
class MigrationsTest {
@@ -29,7 +29,7 @@ class MigrationsTest {
private lateinit var encryptedSharedPreferences: SharedPreferences
private lateinit var proxySharedPreferences: SharedPreferences
- @Before
+ @BeforeTest
fun setup() {
context = SPMockBuilder().createContext()
filesDir = tempFolder.root.path
diff --git a/app/src/test/java/dev/msfjarvis/aps/util/totp/UriTotpFinderTest.kt b/app/src/test/java/dev/msfjarvis/aps/util/totp/UriTotpFinderTest.kt
index 37cbef2f..8d1d5915 100644
--- a/app/src/test/java/dev/msfjarvis/aps/util/totp/UriTotpFinderTest.kt
+++ b/app/src/test/java/dev/msfjarvis/aps/util/totp/UriTotpFinderTest.kt
@@ -5,8 +5,8 @@
package dev.msfjarvis.aps.util.totp
+import kotlin.test.Test
import kotlin.test.assertEquals
-import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import org.robolectric.annotation.Config
diff --git a/app/src/test/java/dev/msfjarvis/aps/util/viewmodel/StrictDomainRegexTest.kt b/app/src/test/java/dev/msfjarvis/aps/util/viewmodel/StrictDomainRegexTest.kt
index 3d511132..ea58460d 100644
--- a/app/src/test/java/dev/msfjarvis/aps/util/viewmodel/StrictDomainRegexTest.kt
+++ b/app/src/test/java/dev/msfjarvis/aps/util/viewmodel/StrictDomainRegexTest.kt
@@ -4,10 +4,10 @@
*/
package dev.msfjarvis.aps.util.viewmodel
+import kotlin.test.Test
import kotlin.test.assertFalse
import kotlin.test.assertNull
import kotlin.test.assertTrue
-import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import org.robolectric.annotation.Config