-
Notifications
You must be signed in to change notification settings - Fork 737
Open
Labels
type: documentationChanges to the documentationChanges to the documentation

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"))
}
Alexander-Miller, Nicofisi and jsadeliandresochoas
Metadata
Metadata
Assignees
Labels
type: documentationChanges to the documentationChanges to the documentation