|
|
|
|
@ -36,7 +36,7 @@ public interface ResultActions {
@@ -36,7 +36,7 @@ public interface ResultActions {
|
|
|
|
|
* |
|
|
|
|
* mockMvc.perform(get("/person/1")) |
|
|
|
|
* .andExpect(status.isOk()) |
|
|
|
|
* .andExpect(content().mimeType(MediaType.APPLICATION_JSON)) |
|
|
|
|
* .andExpect(content().contentType(MediaType.APPLICATION_JSON)) |
|
|
|
|
* .andExpect(jsonPath("$.person.name").value("Jason")); |
|
|
|
|
* |
|
|
|
|
* mockMvc.perform(post("/form")) |
|
|
|
|
|