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.
This commit is contained in:
hupfis
2014-01-24 09:26:09 +01:00
parent 42db41e007
commit 0013a43237

View File

@@ -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();
}
}