replace deprecated MigrationTestHelper constructor

This commit is contained in:
Christophe Beyls 2024-04-18 00:17:21 +02:00
parent b9befb9abb
commit 7945d86b35
1 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,6 @@
package com.keylesspalace.tusky
import androidx.room.testing.MigrationTestHelper
import androidx.sqlite.db.framework.FrameworkSQLiteOpenHelperFactory
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import com.keylesspalace.tusky.db.AppDatabase
@ -19,8 +18,7 @@ class MigrationsTest {
@Rule
var helper: MigrationTestHelper = MigrationTestHelper(
InstrumentationRegistry.getInstrumentation(),
AppDatabase::class.java.canonicalName!!,
FrameworkSQLiteOpenHelperFactory()
AppDatabase::class.java
)
@Test