Skip to content

Commit

Permalink
Fix Javadoc examples
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejZiarko authored and snicoll committed Jan 17, 2015
1 parent 3da9d92 commit 81c750f
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 81c750f

Please sign in to comment.