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:
Anton Bobov 2014-02-10 14:09:09 +06:00
parent ac22b786be
commit 1cf38a98a4
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public interface ResultActions {
*
* mockMvc.perform(get("/person/1"))
* .andExpect(status.isOk())
* .andExpect(content().mimeType(MediaType.APPLICATION_JSON))
* .andExpect(content().contentType(MediaType.APPLICATION_JSON))
* .andExpect(jsonPath("$.person.name").value("Jason"));
*
* mockMvc.perform(post("/form"))