Browse Source

Merge pull request #451 from hupfis/patch-1

Fix code example in Javadoc for ResultActions
pull/445/merge
Sam Brannen 11 years ago
parent
commit
6151e6d12a
  1. 4
      spring-test/src/main/java/org/springframework/test/web/servlet/ResultActions.java

4
spring-test/src/main/java/org/springframework/test/web/servlet/ResultActions.java

@ -37,7 +37,7 @@ public interface ResultActions { @@ -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 { @@ -67,4 +67,4 @@ public interface ResultActions {
*/
MvcResult andReturn();
}
}

Loading…
Cancel
Save