expectBatch

abstract suspend fun <T> expectBatch(urlPatterns: List<Regex>, block: suspend BatchRequestExpectation.() -> T): T

Expects multiple requests matching the given list of urlPatterns. All expectations are active concurrently during block.

Parameters

urlPatterns

List of regex patterns to match request URLs.

block

The block to execute during which the expectations are active.