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.
master
Anton Bobov 11 years ago
parent ac22b786be
commit 1cf38a98a4
  1. 2
      spring-test/src/main/java/org/springframework/test/web/servlet/ResultActions.java

@ -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…
Cancel
Save