Is there a way to run kotlintest with spring boot ...
# kotlintest
g
Is there a way to run kotlintest with spring boot to test field validations on post body? I am looking for a way to write controller tests that would validate the following expected post body My request body looks something like this PostBody.kt
Copy code
data class RequestBody(
       @field:NotNull(message = "amount is required")
        @field:Min(value = 1, message = "amount needs to greater than 0")
        val amount: Long,
        @field:NotBlank(message = "name is required ")
        val name: String)
Using MockMvc I was able to test the response status but the response body did not contain any response body. Am I missing something here?