Skip to content
Snippets Groups Projects
Commit 6c7fb87d authored by Diana Gulčíková's avatar Diana Gulčíková
Browse files

checkstyle fix

parent 994ec5ea
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -19,7 +19,7 @@ import org.springframework.http.MediaType;
import org.springframework.test.web.servlet.MockMvc;
@WebMvcTest(CarManagerController.class)
public class CarManagerControllerTest {
class CarManagerControllerTest {
@Autowired
private MockMvc mockMvc;
......@@ -42,7 +42,7 @@ public class CarManagerControllerTest {
given(mockCarManagerFacade.updateConfig(any())).willReturn(
carConfig);
mockMvc.perform(put("/car/config").contentType(MediaType.APPLICATION_JSON)
.content(objectMapper.writeValueAsString(carConfig)))
.content(objectMapper.writeValueAsString(carConfig)))
.andExpect(status().isOk());
}
......
......@@ -38,7 +38,8 @@ class DriverInitControllerTest {
Driver driverService = driverInitService.addDriver(driver);
String response = mockMvc.perform(post("/driver/add")
.contentType(MediaType.APPLICATION_JSON).content(objectMapper.writeValueAsString(driver)))
.contentType(MediaType.APPLICATION_JSON).content(objectMapper
.writeValueAsString(driver)))
.andExpect(status().isOk())
.andReturn().getResponse().getContentAsString();
Driver driverController = objectMapper.readValue(response, Driver.class);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment