equal
deleted
inserted
replaced
55 /** |
55 /** |
56 * Validate that an OutputStream obtained for the Zip FileSystem |
56 * Validate that an OutputStream obtained for the Zip FileSystem |
57 * can be used successfully with the OutputStream write methods |
57 * can be used successfully with the OutputStream write methods |
58 */ |
58 */ |
59 @Test |
59 @Test |
60 private void zipFsOsDeflatedWriteTest() throws Exception { |
60 public void zipFsOsDeflatedWriteTest() throws Exception { |
61 Files.deleteIfExists(JAR_FILE); |
61 Files.deleteIfExists(JAR_FILE); |
62 String[] msg = {"Hello ", "Tennis Anyone", "!!!!"}; |
62 String[] msg = {"Hello ", "Tennis Anyone", "!!!!"}; |
63 Entry e0 = Entry.of("Entry-0", ZipEntry.DEFLATED, Arrays.toString(msg)); |
63 Entry e0 = Entry.of("Entry-0", ZipEntry.DEFLATED, String.join("",msg)); |
64 |
64 |
65 try (FileSystem zipfs = FileSystems.newFileSystem(JAR_FILE, |
65 try (FileSystem zipfs = FileSystems.newFileSystem(JAR_FILE, |
66 Map.of("create", "true"))) { |
66 Map.of("create", "true"))) { |
67 |
67 |
68 // Write to the Jar file using the various OutputStream write methods |
68 // Write to the Jar file using the various OutputStream write methods |