CloudEventsJsonApprovalTest

class CloudEventsJsonApprovalTest(testNamer: TestNamer = ClassAndMethod, approvalSource: ApprovalSource = FileSystemApprovalSource(File("src/test/resources"))) : ContentTypeAwareApprovalTest

Approval JUnit5 extension configured to compare prettified-JSON messages.

Constructors

Link copied to clipboard
constructor(testNamer: TestNamer = ClassAndMethod, approvalSource: ApprovalSource = FileSystemApprovalSource(File("src/test/resources")))

Functions

Link copied to clipboard
open override fun approverFor(context: ExtensionContext): Approver
Link copied to clipboard
open override fun beforeTestExecution(context: ExtensionContext)
Link copied to clipboard
open override fun format(input: String): String
Link copied to clipboard
open override fun resolveParameter(parameterContext: ParameterContext, context: ExtensionContext): Any?
Link copied to clipboard
open override fun supportsParameter(parameterContext: ParameterContext, context: ExtensionContext): Boolean