Fix Javadoc examples

This commit is contained in:
Maciej Ziarko
2015-01-17 12:26:31 +01:00
committed by Stephane Nicoll
parent 3da9d92bf5
commit 81c750fb1c

View File

@@ -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"))