From 14ca254fbe8d3df8e5937b9142e4b7fd7d5f9f7a Mon Sep 17 00:00:00 2001 From: Amy Lu Date: Wed, 13 Nov 2019 21:56:28 +0800 Subject: [PATCH] 8234079: ZipFileInputStreamSkipTest.java runs zero test Reviewed-by: lancea --- .../java/util/zip/ZipFile/ZipFileInputStreamSkipTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/jdk/java/util/zip/ZipFile/ZipFileInputStreamSkipTest.java b/test/jdk/java/util/zip/ZipFile/ZipFileInputStreamSkipTest.java index f2818178f70..e1c17200764 100644 --- a/test/jdk/java/util/zip/ZipFile/ZipFileInputStreamSkipTest.java +++ b/test/jdk/java/util/zip/ZipFile/ZipFileInputStreamSkipTest.java @@ -105,7 +105,7 @@ public class ZipFileInputStreamSkipTest { * @throws Exception If an error occurs during the test */ @Test - private void testStoredSkip() throws Exception { + public void testStoredSkip() throws Exception { try (ZipFile zf = new ZipFile(STORED_ZIPFILE.toFile())) { var entries = zf.entries(); @@ -153,7 +153,7 @@ public class ZipFileInputStreamSkipTest { * @throws Exception If an error occurs during the test */ @Test - private void testStoredNegativeSkip() throws Exception { + public void testStoredNegativeSkip() throws Exception { try (ZipFile zf = new ZipFile(STORED_ZIPFILE.toFile())) { var entries = zf.entries(); @@ -198,7 +198,7 @@ public class ZipFileInputStreamSkipTest { * @throws Exception If an error occurs during the test */ @Test - private void testDeflatedSkip() throws Exception { + public void testDeflatedSkip() throws Exception { try (ZipFile zf = new ZipFile(DEFLATED_ZIPFILE.toFile())) { var toSkip = 5; // Bytes to Skip var entries = zf.entries(); @@ -225,7 +225,7 @@ public class ZipFileInputStreamSkipTest { * @throws Exception If an unexpected error occurs during the test */ @Test - private void testDeflatedIOException() throws Exception { + public void testDeflatedIOException() throws Exception { try (ZipFile zf = new ZipFile(DEFLATED_ZIPFILE.toFile())) { var entries = zf.entries(); while (entries.hasMoreElements()) {