mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-17 21:27:01 +05:30
all: switch to kotlin.test for unit testing
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
733fb5d96c
commit
420f792290
11 changed files with 33 additions and 15 deletions
|
@ -9,6 +9,6 @@ dependencies {
|
|||
ksp(Dependencies.ThirdParty.Moshi.ksp)
|
||||
implementation(Dependencies.ThirdParty.Retrofit.moshi)
|
||||
testImplementation(Dependencies.Kotlin.Coroutines.core)
|
||||
testImplementation(Dependencies.Testing.junit)
|
||||
testImplementation(kotlin("test-junit"))
|
||||
testImplementation(Dependencies.Testing.mockWebServer)
|
||||
}
|
||||
|
|
|
@ -2,6 +2,9 @@ package dev.msfjarvis.lobsters.data.api
|
|||
|
||||
import com.squareup.moshi.Moshi
|
||||
import dev.msfjarvis.lobsters.util.TestUtils
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertTrue
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import mockwebserver3.Dispatcher
|
||||
import mockwebserver3.MockResponse
|
||||
|
@ -9,10 +12,7 @@ import mockwebserver3.MockWebServer
|
|||
import mockwebserver3.RecordedRequest
|
||||
import okhttp3.OkHttpClient
|
||||
import org.junit.AfterClass
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.BeforeClass
|
||||
import org.junit.Test
|
||||
import retrofit2.Retrofit
|
||||
import retrofit2.converter.moshi.MoshiConverterFactory
|
||||
import retrofit2.create
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue