Commit a95b90ec authored by Simon Reis's avatar Simon Reis
Browse files

SI-152 Störungsauskunft Import: WIP

parent 31163309
......@@ -40,7 +40,7 @@ public class ImportExportController {
@Autowired
private ImportExportService importExportService;
@GetMapping("/user-notification")
@GetMapping("/usernotification-import-test")
@ApiOperation(value = "Import einer externen Störungsinformation")
@ApiResponses(value = {
@ApiResponse(code = 201, message = "Störungsinformation erfolgreich importiert"),
......@@ -51,7 +51,7 @@ public class ImportExportController {
importExportService.importUserNotifications();
}
@PostMapping("/outage-test")
@PostMapping("/outage-export-test")
@ApiOperation(value = "Export einer Störungsinformation")
@ApiResponses(value = {
@ApiResponse(code = 201, message = "Störungsinformation erfolgreich exportiert"),
......
......@@ -53,7 +53,7 @@ public class ImportExportControllerTest {
@Test
public void shouldCallImport() throws Exception {
mockMvc.perform(get("/stoerungsauskunft/user-notification"))
mockMvc.perform(get("/stoerungsauskunft/usernotification-import-test"))
.andExpect(status().is2xxSuccessful());
verify(importExportService, times(1)).importUserNotifications();
......@@ -64,7 +64,7 @@ public class ImportExportControllerTest {
ForeignFailureMessageDto foreignFailureMessageDto = MockDataHelper.mockForeignFailureDto();
mockMvc.perform(post("/stoerungsauskunft/outage-test")
mockMvc.perform(post("/stoerungsauskunft/outage-export-test")
.contentType(MediaType.APPLICATION_JSON)
.content(new ObjectMapper().writeValueAsString(foreignFailureMessageDto)))
.andExpect(status().is2xxSuccessful());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment