Skip to content

Commit

Permalink
[refactor] #4 database unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook123 committed May 1, 2024
1 parent a9572fa commit b81ce63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/database/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
alias(libs.plugins.sopt.android.hilt)
alias(libs.plugins.sopt.plugin.room)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.sopt.android.test)
alias(libs.plugins.sopt.plugin.test)
}

android {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
package com.sopt.database
package org.sopt.database

import android.content.Context
import androidx.room.Room
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.test.runTest
import org.junit.After
import org.junit.Assert.assertEquals
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.sopt.database.SoptDao
import org.sopt.database.SoptDataBase
import org.robolectric.RobolectricTestRunner
import org.sopt.database.entity.SoptEntity

@RunWith(AndroidJUnit4::class)
@RunWith(RobolectricTestRunner::class)
class DataBaseTest {
private lateinit var soptDao: SoptDao
private lateinit var db: SoptDataBase
Expand Down

0 comments on commit b81ce63

Please sign in to comment.