@Test public void testCreateZipWithFilesWhenFilePathContainsBackSlashes() throws IOException { List<String> pair = new ArrayList<String>(); pair.add(FilenameUtils.separatorsToSystem("src\\test\\resources\\first_testreq.txt")); filePaths.add(pair); underTest.createZipWithFiles(filePaths, outputStream); verify(entryFactory).createZipEntry("first_testreq.txt"); verify(zipOutputStream).putNextEntry(zipEntry); verify(zipOutputStream).close(); }
public void createZipWithFiles(final List<List<String>> filePaths, final OutputStream result) { ZipOutputStream zipStream = zipOutputStreamFactory.createZipOutputStream(result); zipFiles(filePaths, zipStream); closeZipStream(zipStream); }
FileZipper { public void createZipWithFiles(final List<List<String>> filePaths, final OutputStream result) { ZipOutputStream zipStream = zipOutputStreamFactory.createZipOutputStream(result); zipFiles(filePaths, zipStream); closeZipStream(zipStream); } }
FileZipper { public void createZipWithFiles(final List<List<String>> filePaths, final OutputStream result) { ZipOutputStream zipStream = zipOutputStreamFactory.createZipOutputStream(result); zipFiles(filePaths, zipStream); closeZipStream(zipStream); }  }
FileZipper { public void createZipWithFiles(final List<List<String>> filePaths, final OutputStream result) { ZipOutputStream zipStream = zipOutputStreamFactory.createZipOutputStream(result); zipFiles(filePaths, zipStream); closeZipStream(zipStream); }  void createZipWithFiles(final List<List<String>> filePaths, final OutputStream result); }
FileZipper { public void createZipWithFiles(final List<List<String>> filePaths, final OutputStream result) { ZipOutputStream zipStream = zipOutputStreamFactory.createZipOutputStream(result); zipFiles(filePaths, zipStream); closeZipStream(zipStream); }  void createZipWithFiles(final List<List<String>> filePaths, final OutputStream result);  }