BAEL-7200
fixed formatting. Used default intellij formatting for Fluent API style.
This commit is contained in:
parent
9dccb1c2c1
commit
8d440a419b
@ -44,9 +44,9 @@ public class EscapeHtmlAspectIntegrationTest {
|
|||||||
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().isCreated())
|
.andExpect(MockMvcResultMatchers.status().isCreated())
|
||||||
.andExpect(MockMvcResultMatchers.content().json(objectMapper.writeValueAsString(expectedResponseBody)));
|
.andExpect(MockMvcResultMatchers.content().json(objectMapper.writeValueAsString(expectedResponseBody)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,9 +43,9 @@ public class EscapeHtmlFilterIntegrationTest {
|
|||||||
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().isCreated())
|
.andExpect(MockMvcResultMatchers.status().isCreated())
|
||||||
.andExpect(MockMvcResultMatchers.content().json(objectMapper.writeValueAsString(expectedResponseBody)));
|
.andExpect(MockMvcResultMatchers.content().json(objectMapper.writeValueAsString(expectedResponseBody)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,8 +39,8 @@ 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().is4xxClientError());
|
.andExpect(MockMvcResultMatchers.status().is4xxClientError());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user