Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MockK to mock the HttpClient #201

Closed
github-actions bot opened this issue Mar 7, 2024 · 1 comment
Closed

Use MockK to mock the HttpClient #201

github-actions bot opened this issue Mar 7, 2024 · 1 comment
Labels

Comments

@github-actions
Copy link

github-actions bot commented Mar 7, 2024

// TODO: Use MockK to mock the HttpClient


import io.github.ydwk.yde.cache.CacheIds
import io.github.ydwk.yde.impl.YDEImpl
import io.github.ydwk.ydwk.cache.user.DummyUserImpl
import io.ktor.client.*
import java.nio.file.Files
import java.nio.file.Path
import kotlin.test.assertEquals
import kotlin.test.assertNotNull
import kotlin.test.assertNull
import org.junit.jupiter.api.Order
import org.junit.jupiter.api.Test

// TODO: Use MockK to mock the HttpClient
class CacheTester {
    val yde = YDEImpl("", "", HttpClient(), mutableListOf(), "", "")
    private val objectMapper = ObjectMapper()
    private val cache = DummyCache(setOf(CacheIds.USER), yde)
    private val userJson =

@github-actions github-actions bot added the todo label Mar 7, 2024
@RealYusufIsmail RealYusufIsmail linked a pull request Mar 21, 2024 that will close this issue
9 tasks
@github-actions github-actions bot closed this as completed Apr 4, 2024
Copy link
Author

github-actions bot commented Apr 4, 2024

Closed in fbd0992

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants