From 3855fc29e8570c65617ac6314d64733425f797c7 Mon Sep 17 00:00:00 2001 From: Nic12345678 <162564162+Nic12345678@users.noreply.github.com> Date: Fri, 27 Sep 2024 12:18:18 +0200 Subject: [PATCH] CamelCase Vereinheitlichung --- .../rest/wahlen/WahlenControllerIntegrationTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wls-basisdaten-service/src/test/java/de/muenchen/oss/wahllokalsystem/basisdatenservice/rest/wahlen/WahlenControllerIntegrationTest.java b/wls-basisdaten-service/src/test/java/de/muenchen/oss/wahllokalsystem/basisdatenservice/rest/wahlen/WahlenControllerIntegrationTest.java index 6e878e4db..bb89bf8d9 100644 --- a/wls-basisdaten-service/src/test/java/de/muenchen/oss/wahllokalsystem/basisdatenservice/rest/wahlen/WahlenControllerIntegrationTest.java +++ b/wls-basisdaten-service/src/test/java/de/muenchen/oss/wahllokalsystem/basisdatenservice/rest/wahlen/WahlenControllerIntegrationTest.java @@ -211,20 +211,20 @@ void existingWahlenAreReplaced() throws Exception { wahltagRepository.save(searchingForWahltag); val oldData = createControllerListOfWahlDTO(searchingForWahltag, ""); SecurityUtils.runWith(Authorities.REPOSITORY_WRITE_WAHL, Authorities.SERVICE_POST_WAHLEN, Authorities.REPOSITORY_READ_WAHL); - val request_first = MockMvcRequestBuilders.post("/businessActions/wahlen/" + searchingForWahltag.getWahltagID()).with(csrf()) + val requestFirst = MockMvcRequestBuilders.post("/businessActions/wahlen/" + searchingForWahltag.getWahltagID()).with(csrf()) .contentType(MediaType.APPLICATION_JSON).content( objectMapper.writeValueAsString(oldData)); - api.perform(request_first).andExpect(status().isOk()); + api.perform(requestFirst).andExpect(status().isOk()); val expectedPostedWahlen_old = wahlModelMapper.fromListOfWahlModeltoListOfWahlEntities(dtoMapper.fromListOfWahlDTOtoListOfWahlModel(oldData)); val oldSavedWahlen = wahlRepository.findAll(); Assertions.assertThat(oldSavedWahlen).isEqualTo(expectedPostedWahlen_old); val newWahlen = createControllerListOfWahlDTO(searchingForWahltag, "newWahlen"); - val request_second = MockMvcRequestBuilders.post("/businessActions/wahlen/" + searchingForWahltag.getWahltagID()).with(csrf()) + val requestSecond = MockMvcRequestBuilders.post("/businessActions/wahlen/" + searchingForWahltag.getWahltagID()).with(csrf()) .contentType(MediaType.APPLICATION_JSON).content( objectMapper.writeValueAsString(newWahlen)); - api.perform(request_second).andExpect(status().isOk()); + api.perform(requestSecond).andExpect(status().isOk()); val expectedPostedWahlen_new = wahlModelMapper.fromListOfWahlModeltoListOfWahlEntities(dtoMapper.fromListOfWahlDTOtoListOfWahlModel(newWahlen)); val newSavedWahlen = wahlRepository.findAll();