Skip to content

Commit e0525a3

Browse files
use autowired mapper instead of blank version
1 parent 4c83314 commit e0525a3

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
@@ -1520,7 +1520,6 @@ public void testDuplicateStudyWithErrorDuringCaseDuplication() throws Exception
15201520
.header(USER_ID_HEADER, "userId"))
15211521
.andExpect(status().isOk()).andReturn().getResponse().getContentAsString();
15221522

1523-
ObjectMapper mapper = new ObjectMapper();
15241523
String duplicatedStudyUuid = mapper.readValue(response, String.class);
15251524
assertNotNull(output.receive(TIMEOUT, studyUpdateDestination));
15261525

@@ -1532,7 +1531,6 @@ private StudyEntity duplicateStudy(UUID studyUuid, String userId, String caseFor
15321531
String response = mockMvc.perform(post(STUDIES_URL + "?duplicateFrom={studyUuid}", studyUuid)
15331532
.header(USER_ID_HEADER, "userId"))
15341533
.andExpect(status().isOk()).andReturn().getResponse().getContentAsString();
1535-
ObjectMapper mapper = new ObjectMapper();
15361534
String newUuid = mapper.readValue(response, String.class);
15371535
StudyEntity sourceStudy = studyRepository.findById(studyUuid).orElseThrow();
15381536
assertNotNull(output.receive(TIMEOUT, studyUpdateDestination));

0 commit comments

Comments
 (0)