Skip to content

Commit

Permalink
Merge pull request spring-projects#721 from MaciejZiarko/java-doc-fix
Browse files Browse the repository at this point in the history
* java-doc-fix:
  Fix Javadoc examples
  • Loading branch information
snicoll committed Jan 17, 2015
2 parents 3da9d92 + 81c750f commit 4a2b6a1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public interface ResultActions {
* static imports: MockMvcRequestBuilders.*, MockMvcResultMatchers.*
*
* mockMvc.perform(get("/person/1"))
* .andExpect(status.isOk())
* .andExpect(status().isOk())
* .andExpect(content().contentType(MediaType.APPLICATION_JSON))
* .andExpect(jsonPath("$.person.name").value("Jason"));
*
* mockMvc.perform(post("/form"))
* .andExpect(status.isOk())
* .andExpect(status().isOk())
* .andExpect(redirectedUrl("/person/1"))
* .andExpect(model().size(1))
* .andExpect(model().attributeExists("person"))
Expand Down

0 comments on commit 4a2b6a1

Please sign in to comment.