BatchRequestExpectation

Represents a batch of request expectations, each defined by a URL pattern and its corresponding expectation.

Inheritors

Properties

Link copied to clipboard

A map of URL patterns (as Regex) to their corresponding RequestExpectations.

Functions

Link copied to clipboard
abstract suspend fun <T> use(block: suspend BatchRequestExpectation.() -> T): T

Activate all expectations for the duration of block. Expectations are enabled concurrently by nesting RequestExpectation.use calls, so all handlers are active while block executes.