MatchingHeaders

class MatchingHeaders(shouldVerifyHeader: (String) -> Boolean) : CallAsserter

Asserter that verifies headers of the requests match

Parameters

shouldVerifyHeader

A predicate which indicates whether a header with the given key should be verified

Constructors

Link copied to clipboard
constructor(shouldVerifyHeader: (String) -> Boolean)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun assertEquals(msgPrefix: String, expected: <Error class: unknown class>, actual: <Error class: unknown class>)

Verify that expected and actual are equal according to this asserter's criteria. If not, an AssertionError is thrown.