From d6f98b0d085f92852cc07988b5d6771abdff858d Mon Sep 17 00:00:00 2001 From: Shinokuni Date: Mon, 28 Dec 2020 16:02:08 +0100 Subject: [PATCH] Delete unused tests --- .../com/readrops/db/DatabaseMigrationsTest.kt | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 db/src/androidTest/java/com/readrops/db/DatabaseMigrationsTest.kt diff --git a/db/src/androidTest/java/com/readrops/db/DatabaseMigrationsTest.kt b/db/src/androidTest/java/com/readrops/db/DatabaseMigrationsTest.kt deleted file mode 100644 index 5280220c..00000000 --- a/db/src/androidTest/java/com/readrops/db/DatabaseMigrationsTest.kt +++ /dev/null @@ -1,35 +0,0 @@ -package com.readrops.db - -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 org.junit.Rule -import org.junit.Test -import org.junit.runner.RunWith -import java.io.IOException - -@RunWith(AndroidJUnit4::class) -class DatabaseMigrationsTest { - - private val testDb = "migration-test" - - @get:Rule - val helper = MigrationTestHelper( - InstrumentationRegistry.getInstrumentation(), - "com.readrops.db.Database/", - FrameworkSQLiteOpenHelperFactory() - ) - - @Test - fun migrate1To2() { - helper.createDatabase(testDb, 1).close() - helper.runMigrationsAndValidate(testDb, 2, true, Database.MIGRATION_1_2).close() - } - - @Test - fun migrate2to3() { - helper.createDatabase(testDb, 2).close() - helper.runMigrationsAndValidate(testDb, 3, true, Database.MIGRATION_2_3).close() - } -} \ No newline at end of file