@Test public void shouldZipDirWithoutRoot() throws Exception { Path toZipDir = temporaryFolder.resolve("toZip"); toZipDir.toFile().mkdirs(); File toZipFile = toZipDir.resolve(SOME_FILE_PATH).toFile(); toZipFile.getParentFile().mkdirs(); toZipFile.createNewFile(); try (ByteArrayOutputStream output = new ByteArrayOutputStream()) { ZipHelper.zip(toZipDir.toFile(), output); output.close(); verifyZipContent(output, Paths.get("a", "b", SOME_FILE).toString()); } }
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);  }