CallAsserter

interface CallAsserter

Asserts equality between two HttpRequest instances. Implementations of this interface are free to choose criteria for the equality assertion.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class List(asserters: CallAsserter) : CallAsserter

Asserter that delegates to a collection of sub-asserters

Link copied to clipboard

Asserter that verifies the bodies of the requests match

Link copied to clipboard
class MatchingHeaders(shouldVerifyHeader: (String) -> Boolean) : CallAsserter

Asserter that verifies headers of the requests match

Link copied to clipboard

Asserter that verifies the methods of the requests match

Link copied to clipboard

Asserter that verifies the URLs of the requests match

Functions

Link copied to clipboard
abstract suspend 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.