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