Open

Description
Was trying to implement RestDocs MockMvc in our Kotlin project
However noticed that when using the MockMvc Kotlin DSL snippets were not generated
e.g.
fun shouldReturnDefaultMessageKotlinDSL() {
mockMvc.get("/hello")
.andExpect {
status { isOk }
content {
string(containsString("Hello, world!"))
}
}.andDo {
print()
document("home")
}
}
However using the java format did correctly generate
e.g.
fun shouldReturnDefaultMessage() {
this.mockMvc.perform(get("/hello"))
.andDo(print())
.andExpect(status().isOk)
.andExpect(content().string(containsString("Hello, world!")))
.andDo(document("home"))
}