parent
d58102e32c
commit
526a90bc8c
|
@ -44,10 +44,8 @@ public class EscapeHtmlFilterIntegrationTest {
|
|||
|
||||
mockMvc.perform(MockMvcRequestBuilders.post(URI.create("/save"))
|
||||
.contentType(MediaType.APPLICATION_JSON)
|
||||
.content(objectMapper.writeValueAsString(requestBody)))
|
||||
.andExpect(MockMvcResultMatchers.status()
|
||||
.isCreated())
|
||||
.andExpect(MockMvcResultMatchers.content()
|
||||
.content(objectMapper.writeValueAsString(requestBody))).andExpect(MockMvcResultMatchers.status()
|
||||
.isCreated()).andExpect(MockMvcResultMatchers.content()
|
||||
.json(objectMapper.writeValueAsString(expectedResponseBody)));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,8 +40,7 @@ public class EscapeHtmlInterceptorIntegrationTest {
|
|||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
mockMvc.perform(MockMvcRequestBuilders.post(URI.create("/save"))
|
||||
.contentType(MediaType.APPLICATION_JSON)
|
||||
.content(objectMapper.writeValueAsString(requestBody)))
|
||||
.andExpect(MockMvcResultMatchers.status()
|
||||
.content(objectMapper.writeValueAsString(requestBody))).andExpect(MockMvcResultMatchers.status()
|
||||
.is4xxClientError());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue