@Test public void shouldNotZipAlreadyZipped() throws Exception { final File file = temporaryFolder.resolve(SOME_FILE).toFile(); file.createNewFile(); final File zipped = temporaryFolder.resolve("zipped.zip").toFile(); try (FileOutputStream zipStream = new FileOutputStream(zipped)) { ZipHelper.zip(file, zipStream); zipStream.close(); } try (ByteArrayOutputStream output = new ByteArrayOutputStream()) { ZipHelper.zip(zipped, output); output.close(); verifyZipContent(output, SOME_FILE); } }
public static void zip(File file, OutputStream output) throws IOException { zip(file, output, false); }
ZipHelper { public static void zip(File file, OutputStream output) throws IOException { zip(file, output, false); } }
ZipHelper { public static void zip(File file, OutputStream output) throws IOException { zip(file, output, false); }  }
ZipHelper { public static void zip(File file, OutputStream output) throws IOException { zip(file, output, false); }  static void zip(File file, OutputStream output); static void zip(File file, OutputStream output, boolean includeRoot); }
ZipHelper { public static void zip(File file, OutputStream output) throws IOException { zip(file, output, false); }  static void zip(File file, OutputStream output); static void zip(File file, OutputStream output, boolean includeRoot);  }