Untitled

 avatar
unknown
plain_text
9 months ago
499 B
7
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