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. 2
      spring-test/src/main/java/org/springframework/test/web/servlet/ResultActions.java

2
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())

Loading…
Cancel
Save