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
The following commit(s) were added to refs/heads/master by this push:
new a71704a4e Reuse NIO API instead of custom code
a71704a4e is described below
commit a71704a4e99693d2e887eaf5b757ce7d14b5ba4b
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Nov 14 14:05:53 2023 -0500
Reuse NIO API instead of custom code
---
.../commons/compress/archivers/zip/ZipArchiveInputStreamTest.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git
a/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
b/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
index 339ba9329..1f2333c67 100644
---
a/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
+++
b/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
@@ -648,9 +648,7 @@ public class ZipArchiveInputStreamTest extends AbstractTest
{
assertTrue(in.canReadEntryData(entry));
}
- try (InputStream original = newInputStream("test2.xml")) {
- assertArrayEquals(IOUtils.toByteArray(original),
IOUtils.toByteArray(in));
- }
+ assertArrayEquals(Files.readAllBytes(getPath("test2.xml")),
IOUtils.toByteArray(in));
}
}