Skip to content

Commit

Permalink
clean conde
Browse files Browse the repository at this point in the history
Signed-off-by: jamal-khey <myjamal89@gmail.com>
  • Loading branch information
jamal-khey committed Aug 5, 2024
1 parent eab35af commit 66fafa8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,12 @@ public void testDeleteElementInfos() throws Exception {
Assert.assertEquals(2, supervisionService.getIndexedCaseElementsCount());
}

private UUID importCase(String testCase, Boolean indexed) throws Exception {
String importedCase = mockMvc.perform(multipart("/v1/cases")
private void importCase(String testCase, Boolean indexed) throws Exception {
mockMvc.perform(multipart("/v1/cases")
.file(createMockMultipartFile(testCase))
.param("indexed", indexed.toString()))
.andExpect(status().isOk())
.andReturn().getResponse().getContentAsString();

return UUID.fromString(importedCase.substring(1, importedCase.length() - 1));
}

private static MockMultipartFile createMockMultipartFile(String fileName) throws IOException {
Expand Down

0 comments on commit 66fafa8

Please sign in to comment.