class MockDuplexResponseBody : DuplexResponseBody
A scriptable request/response conversation. Create the script by calling methods like receiveRequest in the sequence they are run.
MockDuplexResponseBody()
A scriptable request/response conversation. Create the script by calling methods like receiveRequest in the sequence they are run. |
fun awaitSuccess(): Unit
Returns once the duplex conversation completes successfully. |
|
fun exhaustRequest(): MockDuplexResponseBody |
|
fun exhaustResponse(): MockDuplexResponseBody |
|
fun onRequest(request: RecordedRequest, requestBody: BufferedSource, responseBody: BufferedSink): Unit |
|
fun receiveRequest(expected: String): MockDuplexResponseBody |
|
fun requestIOException(): MockDuplexResponseBody |
|
fun sendResponse(s: String, responseSent: CountDownLatch = CountDownLatch(0)): MockDuplexResponseBody |
|
fun sleep(duration: Long, unit: TimeUnit): MockDuplexResponseBody |