aboutsummaryrefslogtreecommitdiff
path: root/app/src/androidTest/kotlin/com/pitchedapps/frost/db/FbTabsDbTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/androidTest/kotlin/com/pitchedapps/frost/db/FbTabsDbTest.kt')
-rw-r--r--app/src/androidTest/kotlin/com/pitchedapps/frost/db/FbTabsDbTest.kt34
1 files changed, 0 insertions, 34 deletions
diff --git a/app/src/androidTest/kotlin/com/pitchedapps/frost/db/FbTabsDbTest.kt b/app/src/androidTest/kotlin/com/pitchedapps/frost/db/FbTabsDbTest.kt
deleted file mode 100644
index 752112f9..00000000
--- a/app/src/androidTest/kotlin/com/pitchedapps/frost/db/FbTabsDbTest.kt
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.pitchedapps.frost.db
-
-import com.pitchedapps.frost.facebook.FbItem
-import com.pitchedapps.frost.facebook.defaultTabs
-import kotlinx.coroutines.runBlocking
-import kotlin.test.Test
-import kotlin.test.assertEquals
-
-class FbTabsDbTest : BaseDbTest() {
-
- private val dao get() = db.tabDao()
-
- /**
- * Note that order is also preserved here
- */
- @Test
- fun save() {
- val tabs = listOf(FbItem.ACTIVITY_LOG, FbItem.BIRTHDAYS, FbItem.EVENTS, FbItem.MARKETPLACE, FbItem.ACTIVITY_LOG)
- runBlocking {
- dao.save(tabs)
- assertEquals(tabs, dao.selectAll(), "Tab saving failed")
- val newTabs = listOf(FbItem.PAGES, FbItem.MENU)
- dao.save(newTabs)
- assertEquals(newTabs, dao.selectAll(), "Tab saving does not delete preexisting items")
- }
- }
-
- @Test
- fun defaultRetrieve() {
- runBlocking {
- assertEquals(defaultTabs(), dao.selectAll(), "Default retrieval failed")
- }
- }
-} \ No newline at end of file