ContentTypeAwareApprovalTest

abstract class ContentTypeAwareApprovalTest(contentType: ContentType, testNamer: TestNamer = ClassAndMethod, approvalSource: ApprovalSource = FileSystemApprovalSource(File("src/test/resources"))) : BaseApprovalTest

Approval testing JUnit5 extension that checks the expected content type is present in the

Inheritors

Constructors

Link copied to clipboard
constructor(contentType: ContentType, 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
abstract 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