api

http4k / org.http4k.testing / ApprovalTest

ApprovalTest

class ApprovalTest : BaseApprovalTest (source)

Standard Approval JUnit5 extension. Can be used to compare any HttpMessages.

Constructors

Name Summary
<init> ApprovalTest()
Standard Approval JUnit5 extension. Can be used to compare any HttpMessages.

Functions

Name Summary
approverFor fun approverFor(context: ExtensionContext): Approver

Inherited Functions

Name Summary
beforeTestExecution open fun beforeTestExecution(context: ExtensionContext): Unit
resolveParameter open fun resolveParameter(parameterContext: ParameterContext, context: ExtensionContext): Any?
supportsParameter open fun supportsParameter(parameterContext: ParameterContext, context: ExtensionContext): Boolean

Extension Functions

Name Summary
with fun <T> T.with(vararg modifiers: (T) -> T): T