mirror of
https://github.com/ouchadam/small-talk.git
synced 2025-01-11 17:43:58 +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
|
||
|
}
|
||
|
}
|