mirror of
https://github.com/ouchadam/small-talk.git
synced 2024-12-20 14:34:01 +01:00
11 lines
310 B
Kotlin
11 lines
310 B
Kotlin
package fake
|
|
|
|
import app.dapk.st.matrix.http.MatrixHttpClient
|
|
import io.mockk.coEvery
|
|
import io.mockk.mockk
|
|
|
|
class FakeMatrixHttpClient : MatrixHttpClient by mockk() {
|
|
fun <T : Any> given(request: MatrixHttpClient.HttpRequest<T>, response: T) {
|
|
coEvery { execute(request) } returns response
|
|
}
|
|
} |