mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
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:
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user