http4k / org.http4k.testing / Approver
interface Approver
Coordinates the comparison of the content for a test.
Name | Summary |
---|---|
assertApproved | Check the content of the passed message against the previously approved content.abstract fun <T : HttpMessage > assertApproved(httpMessage: T): Unit |
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> |
Name | Summary |
---|---|
NamedResourceApprover | class NamedResourceApprover : Approver |