Fixed example in JavaDoc.
mimeType is not a valid method on ContentResultMatche. I have signed and agree to the terms of the SpringSource Individual Contributor License Agreement.
This commit is contained in:
parent
ac22b786be
commit
1cf38a98a4
|
@ -36,7 +36,7 @@ public interface ResultActions {
|
||||||
*
|
*
|
||||||
* mockMvc.perform(get("/person/1"))
|
* mockMvc.perform(get("/person/1"))
|
||||||
* .andExpect(status.isOk())
|
* .andExpect(status.isOk())
|
||||||
* .andExpect(content().mimeType(MediaType.APPLICATION_JSON))
|
* .andExpect(content().contentType(MediaType.APPLICATION_JSON))
|
||||||
* .andExpect(jsonPath("$.person.name").value("Jason"));
|
* .andExpect(jsonPath("$.person.name").value("Jason"));
|
||||||
*
|
*
|
||||||
* mockMvc.perform(post("/form"))
|
* mockMvc.perform(post("/form"))
|
||||||
|
|
Loading…
Reference in New Issue