8234080: jdk/nio/zipfs/CRCWriteTest.java fails

Reviewed-by: clanger, amlu
This commit is contained in:
Lance Andersen 2019-11-14 10:54:32 -05:00
parent 6f1f675324
commit 4110efa386

View File

@ -57,10 +57,10 @@ public class CRCWriteTest {
* 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"))) {