MockStreamHandler

A scriptable request/response conversation. Create the script by calling methods like receiveRequest in the sequence they are run.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Returns once all stream actions complete successfully.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun handle(stream: Stream)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun sendResponse(s: String, responseSent: CountDownLatch = CountDownLatch(0)): MockStreamHandler
Link copied to clipboard
fun sleep(duration: Long, unit: TimeUnit): MockStreamHandler