http4k / org.http4k.testing / ContentTypeAwareApprovalTest
abstract class ContentTypeAwareApprovalTest :
BaseApprovalTest
Approval testing JUnit5 extension that checks the expected content type is present in the
Name | Summary |
---|---|
<init> | Approval testing JUnit5 extension that checks the expected content type is present in theContentTypeAwareApprovalTest(contentType: ContentType , testNamer: TestNamer = ClassAndMethod, approvalSource: ApprovalSource = FileSystemApprovalSource(File("src/test/resources"))) |
Name | Summary |
---|---|
approverFor | open fun approverFor(context: ExtensionContext): Approver |
format | abstract fun format(input: String ): String |
Name | Summary |
---|---|
HtmlApprovalTest | Approval JUnit5 extension configured to compare prettified-HTML messages. Note that this stripsclass HtmlApprovalTest : ContentTypeAwareApprovalTest |
JsonApprovalTest | Approval JUnit5 extension configured to compare prettified-JSON messages.class JsonApprovalTest : ContentTypeAwareApprovalTest |
XmlApprovalTest | Approval JUnit5 extension configured to compare prettified-XML messages.class XmlApprovalTest : ContentTypeAwareApprovalTest |