8234080: jdk/nio/zipfs/CRCWriteTest.java fails
authorlancea
Thu, 14 Nov 2019 10:54:32 -0500
changeset 59083 3e4d8b5856f3
parent 59081 95a99e617f28
child 59089 de56632f796d
8234080: jdk/nio/zipfs/CRCWriteTest.java fails Reviewed-by: clanger, amlu
test/jdk/jdk/nio/zipfs/CRCWriteTest.java
--- a/test/jdk/jdk/nio/zipfs/CRCWriteTest.java	Thu Nov 14 15:24:35 2019 +0100
+++ b/test/jdk/jdk/nio/zipfs/CRCWriteTest.java	Thu Nov 14 10:54:32 2019 -0500
@@ -57,10 +57,10 @@
      * can be used successfully with the OutputStream write methods
      */
     @Test
-    private void zipFsOsDeflatedWriteTest() throws Exception {
+    public void zipFsOsDeflatedWriteTest() throws Exception {
         Files.deleteIfExists(JAR_FILE);
         String[] msg = {"Hello ", "Tennis Anyone", "!!!!"};
-        Entry e0 = Entry.of("Entry-0", ZipEntry.DEFLATED, Arrays.toString(msg));
+        Entry e0 = Entry.of("Entry-0", ZipEntry.DEFLATED, String.join("",msg));
 
         try (FileSystem zipfs = FileSystems.newFileSystem(JAR_FILE,
                 Map.of("create", "true"))) {