This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git

commit c6dd9d6dd9bfe12275831c73cf39a737b40f3d64
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Feb 28 15:05:18 2024 -0500

    Simplify test setups
---
 src/test/java/org/apache/commons/compress/archivers/ZipTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/compress/archivers/ZipTest.java 
b/src/test/java/org/apache/commons/compress/archivers/ZipTest.java
index a9089c50a..3ea64fcd8 100644
--- a/src/test/java/org/apache/commons/compress/archivers/ZipTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/ZipTest.java
@@ -790,8 +790,8 @@ public final class ZipTest extends AbstractTest {
      */
     @Test
     public void testZipArchiveCreationInMemory() throws Exception {
-        final byte[] file1Contents = Files.readAllBytes(getPath("test1.xml"));
-        final byte[] file2Contents = Files.readAllBytes(getPath("test2.xml"));
+        final byte[] file1Contents = readAllBytes("test1.xml");
+        final byte[] file2Contents = readAllBytes("test2.xml");
         final List<byte[]> results = new ArrayList<>();
         try (SeekableInMemoryByteChannel channel = new 
SeekableInMemoryByteChannel()) {
             try (ZipArchiveOutputStream os = new 
ZipArchiveOutputStream(channel)) {

Reply via email to