See static factory methods in {@code org.springframework.test.web.server.result.MockMvcResultMatchers}.
Example:
static imports: MockMvcRequestBuilders.*, MockMvcResultMatchers. mockMvc.perform(get("/form")) .andExpect(status().isOk()) .andExpect(content().mimeType(MediaType.APPLICATION_JSON));@author Rossen Stoyanchev
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|