@Test public void createAndValidateZipFile() throws IOException { final String zipFilePath = this.fileZipper.compressFile(this.filePath); assertThat(zipFilePath).isEqualTo(this.filePath + ".zip"); final File zipFile = new File(zipFilePath); assertThat(zipFile).isNotNull(); assertThat(zipFile.exists()).isTrue(); this.validateZipFileContent(zipFile); }
public String compressFile(final String filePath) throws IOException { return this.compressFile(filePath, ONE_MB); }
FileZipper { public String compressFile(final String filePath) throws IOException { return this.compressFile(filePath, ONE_MB); } }
FileZipper { public String compressFile(final String filePath) throws IOException { return this.compressFile(filePath, ONE_MB); } FileZipper();  FileZipper(final int compressionLevel, final boolean removeInputFile); }
FileZipper { public String compressFile(final String filePath) throws IOException { return this.compressFile(filePath, ONE_MB); } FileZipper();  FileZipper(final int compressionLevel, final boolean removeInputFile); int getCompressionLevel(); boolean isRemoveInputFile(); static String compressFileUsingDefaultSettings(final String filePath); String compressFile(final String filePath); String compressFile(final String filePath, final int inMemoryBufferSize); String compressFile(final String inputFilePath, final String outputFilePath); String compressFile(final String inputFilePath, final String outputFilePath, final int inMemoryBufferSize); }
FileZipper { public String compressFile(final String filePath) throws IOException { return this.compressFile(filePath, ONE_MB); } FileZipper();  FileZipper(final int compressionLevel, final boolean removeInputFile); int getCompressionLevel(); boolean isRemoveInputFile(); static String compressFileUsingDefaultSettings(final String filePath); String compressFile(final String filePath); String compressFile(final String filePath, final int inMemoryBufferSize); String compressFile(final String inputFilePath, final String outputFilePath); String compressFile(final String inputFilePath, final String outputFilePath, final int inMemoryBufferSize);  }