api

http4k / org.http4k.testing / Approver

Approver

interface Approver

Coordinates the comparison of the content for a test.

Functions

Name Summary
assertApproved Check the content of the passed message against the previously approved content.abstract fun <T : HttpMessage> assertApproved(httpMessage: T): Unit

Extension Functions

Name Summary
assertApproved fun Approver.assertApproved(response: Response, expectedStatus: Status): Unit
fun Approver.assertApproved(content: String): Unit
fun Approver.assertApproved(content: InputStream): Unit
hasApprovedContent Create a Hamkrest Matcher for this message that can be combined with other Matchersfun <T : HttpMessage> Approver.hasApprovedContent(): Matcher<T>

Inheritors

Name Summary
NamedResourceApprover class NamedResourceApprover : Approver