Untitled
unknown
plain_text
a year ago
499 B
12
Indexable
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);
}Editor is loading...
Leave a Comment