Fixed code example in JavaDoc

equalTo is not a valid method on JsonPathResultMatchers

I have signed and agree to the terms of the SpringSource Individual Contributor License Agreement.
master
hupfis 11 years ago
parent 42db41e007
commit 0013a43237
  1. 4
      spring-test/src/main/java/org/springframework/test/web/servlet/ResultActions.java

@ -37,7 +37,7 @@ public interface ResultActions {
* mockMvc.perform(get("/person/1"))
* .andExpect(status.isOk())
* .andExpect(content().mimeType(MediaType.APPLICATION_JSON))
* .andExpect(jsonPath("$.person.name").equalTo("Jason"));
* .andExpect(jsonPath("$.person.name").value("Jason"));
*
* mockMvc.perform(post("/form"))
* .andExpect(status.isOk())
@ -67,4 +67,4 @@ public interface ResultActions {
*/
MvcResult andReturn();
}
}

Loading…
Cancel
Save