all: switch to kotlin.test for unit testing

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-03-18 23:08:06 +05:30
parent 733fb5d96c
commit 420f792290
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
11 changed files with 33 additions and 15 deletions

View file

@ -7,5 +7,5 @@ plugins {
dependencies {
testImplementation(Dependencies.Kotlin.Coroutines.core)
testImplementation(Dependencies.ThirdParty.SQLDelight.jvmDriver)
testImplementation(Dependencies.Testing.junit)
testImplementation(kotlin("test-junit"))
}

View file

@ -3,10 +3,10 @@ package dev.msfjarvis.lobsters.data.local
import com.squareup.sqldelight.sqlite.driver.JdbcSqliteDriver
import dev.msfjarvis.lobsters.database.LobstersDatabase
import dev.msfjarvis.lobsters.model.TagsAdapter
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlinx.coroutines.runBlocking
import org.junit.Assert.assertEquals
import org.junit.Before
import org.junit.Test
@OptIn(ExperimentalStdlibApi::class)
class SqlDelightQueriesTest {