diff --git a/framework-docs/src/docs/asciidoc/testing/spring-mvc-test-framework.adoc b/framework-docs/src/docs/asciidoc/testing/spring-mvc-test-framework.adoc index 196212377f..10f21afe61 100644 --- a/framework-docs/src/docs/asciidoc/testing/spring-mvc-test-framework.adoc +++ b/framework-docs/src/docs/asciidoc/testing/spring-mvc-test-framework.adoc @@ -445,6 +445,17 @@ all failures will be tracked and reported. content().contentType("application/json;charset=UTF-8")); ---- +[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"] +.Kotlin +---- + import org.springframework.test.web.servlet.get + + mockMvc.get("/accounts/1").andExpectAll { + status { isOk() } + content { contentType(APPLICATION_JSON) } + } +---- + `MockMvcResultMatchers.*` provides a number of expectations, some of which are further nested with more detailed expectations.