From 31be269abca81b9efe8d260483c84c6a93dbdbd9 Mon Sep 17 00:00:00 2001 From: Tristan Chuine Date: Mon, 10 Jun 2024 23:17:49 +0200 Subject: [PATCH] use autowired mapper instead of blank version --- src/test/java/org/gridsuite/study/server/StudyTest.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/test/java/org/gridsuite/study/server/StudyTest.java b/src/test/java/org/gridsuite/study/server/StudyTest.java index 0c81d1a6f..7a0448ab5 100644 --- a/src/test/java/org/gridsuite/study/server/StudyTest.java +++ b/src/test/java/org/gridsuite/study/server/StudyTest.java @@ -1518,7 +1518,6 @@ public void testDuplicateStudyWithErrorDuringCaseDuplication() throws Exception .header(USER_ID_HEADER, "userId")) .andExpect(status().isOk()).andReturn().getResponse().getContentAsString(); - ObjectMapper mapper = new ObjectMapper(); String duplicatedStudyUuid = mapper.readValue(response, String.class); assertNotNull(output.receive(TIMEOUT, studyUpdateDestination)); @@ -1530,7 +1529,6 @@ private StudyEntity duplicateStudy(UUID studyUuid, String userId, String caseFor String response = mockMvc.perform(post(STUDIES_URL + "?duplicateFrom={studyUuid}", studyUuid) .header(USER_ID_HEADER, "userId")) .andExpect(status().isOk()).andReturn().getResponse().getContentAsString(); - ObjectMapper mapper = new ObjectMapper(); String newUuid = mapper.readValue(response, String.class); StudyEntity sourceStudy = studyRepository.findById(studyUuid).orElseThrow(); assertNotNull(output.receive(TIMEOUT, studyUpdateDestination));