Approver

interface Approver

Coordinates the comparison of the content for a test.

Inheritors

Functions

Link copied to clipboard
abstract fun <T : HttpMessage> assertApproved(httpMessage: T)

Check the content of the passed message against the previously approved content.

Link copied to clipboard
fun Approver.assertApproved(content: InputStream, contentType: ContentType? = null)
fun Approver.assertApproved(content: String, contentType: ContentType? = null)
fun Approver.assertApproved(response: Response, expectedStatus: Status)
Link copied to clipboard

Create a Hamkrest Matcher for this message that can be combined with other Matchers

Link copied to clipboard
abstract fun withNameSuffix(suffix: String): Approver