Untitled
unknown
plain_text
9 days ago
499 B
4
Indexable
Never
File file = getFile(TEST_FILE_PATH_UTILS + "/"+ "ips_filter_test.csv"); try { FileInputStream fileInputStream = new FileInputStream(file); String fileName = file.getName(); MultipartFile multipartFile = new MockMultipartFile(fileName, fileName, "application/octet-stream", fileInputStream.readAllBytes()); ipFilterService.processIPFilterFile(multipartFile); } catch (Exception e) { throw new RuntimeException(e); }
Leave a Comment