Remove infix qualifier from ResultActionsDsl methods

The infix form limits the extensibility of the API and
prevents calling `andReturn()`.

See gh-1951
This commit is contained in:
Sebastien Deleuze
2019-03-04 19:15:12 +01:00
parent 0c332286f1
commit 9e873af6ab
3 changed files with 29 additions and 29 deletions

View File

@@ -336,17 +336,17 @@ better discoverability (no usage of static methods).
val mockMvc: MockMvc = ...
mockMvc.get("/person/{name}", "Lee") {
secure = true
accept = MediaType.APPLICATION_JSON
accept = APPLICATION_JSON
headers {
contentLanguage = Locale.FRANCE
}
principal = Principal { "foo" }
} andExpect {
}.andExpect {
status { isOk }
content { contentType("application/json;charset=UTF-8") }
content { contentType(APPLICATION_JSON_UTF8) }
jsonPath("$.name") { value("Lee") }
content { json("""{"someBoolean": false}""", false) }
} andDo {
}.andDo {
print()
}
----