Skip to content

Commit 31be269

Browse files
use autowired mapper instead of blank version
1 parent 6a6996f commit 31be269

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/test/java/org/gridsuite/study/server/StudyTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,6 @@ public void testDuplicateStudyWithErrorDuringCaseDuplication() throws Exception
15181518
.header(USER_ID_HEADER, "userId"))
15191519
.andExpect(status().isOk()).andReturn().getResponse().getContentAsString();
15201520

1521-
ObjectMapper mapper = new ObjectMapper();
15221521
String duplicatedStudyUuid = mapper.readValue(response, String.class);
15231522
assertNotNull(output.receive(TIMEOUT, studyUpdateDestination));
15241523

@@ -1530,7 +1529,6 @@ private StudyEntity duplicateStudy(UUID studyUuid, String userId, String caseFor
15301529
String response = mockMvc.perform(post(STUDIES_URL + "?duplicateFrom={studyUuid}", studyUuid)
15311530
.header(USER_ID_HEADER, "userId"))
15321531
.andExpect(status().isOk()).andReturn().getResponse().getContentAsString();
1533-
ObjectMapper mapper = new ObjectMapper();
15341532
String newUuid = mapper.readValue(response, String.class);
15351533
StudyEntity sourceStudy = studyRepository.findById(studyUuid).orElseThrow();
15361534
assertNotNull(output.receive(TIMEOUT, studyUpdateDestination));

0 commit comments

Comments
 (0)