BAEL-7200

fixed formatting
This commit is contained in:
parthiv39731 2023-11-27 10:58:12 +05:30
parent d58102e32c
commit 526a90bc8c
2 changed files with 7 additions and 10 deletions

View File

@ -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)));
} }
} }

View File

@ -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());
} }
} }