test/jdk/jdk/nio/zipfs/CRCWriteTest.java
changeset 59083 3e4d8b5856f3
parent 58822 9d95d8a8b750
equal deleted inserted replaced
59081:95a99e617f28 59083:3e4d8b5856f3
    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