Merge pull request #458 from abobov/master

Fix example in Javadoc for ResultActions.andExpect()
This commit is contained in:
Sam Brannen
2014-02-10 15:23:48 +01:00

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"))