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 9b3f89a3e Test Lister with non-corrupt arj files 9b3f89a3e is described below commit 9b3f89a3e2a994bc155d310258b112e7086acaa2 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Feb 1 19:44:31 2024 -0500 Test Lister with non-corrupt arj files --- .../org/apache/commons/compress/archivers/ListerTest.java | 2 +- .../compress/archivers/arj/ArjArchiveInputStreamTest.java | 2 +- .../{zero_sized_headers.arj => zero_sized_headers-fail.arj} | Bin 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/compress/archivers/ListerTest.java b/src/test/java/org/apache/commons/compress/archivers/ListerTest.java index b4c87b9bb..209a32468 100644 --- a/src/test/java/org/apache/commons/compress/archivers/ListerTest.java +++ b/src/test/java/org/apache/commons/compress/archivers/ListerTest.java @@ -32,7 +32,7 @@ import org.junit.jupiter.params.provider.MethodSource; public class ListerTest { public static Stream<Path> getFixtures() throws IOException { - return PathUtils.walk(Paths.get("src/test/resources"), new RegexFileFilter("^(?!.*(-fail)).*\\.tar$"), 10, false); + return PathUtils.walk(Paths.get("src/test/resources"), new RegexFileFilter("^(?!.*(-fail)).*\\.(tar|arj)$"), 10, false); } @ParameterizedTest diff --git a/src/test/java/org/apache/commons/compress/archivers/arj/ArjArchiveInputStreamTest.java b/src/test/java/org/apache/commons/compress/archivers/arj/ArjArchiveInputStreamTest.java index 421bae8da..71aa44f68 100644 --- a/src/test/java/org/apache/commons/compress/archivers/arj/ArjArchiveInputStreamTest.java +++ b/src/test/java/org/apache/commons/compress/archivers/arj/ArjArchiveInputStreamTest.java @@ -62,7 +62,7 @@ public class ArjArchiveInputStreamTest extends AbstractTest { @Test public void testFirstHeaderSizeSetToZero() throws Exception { - try (InputStream in = newInputStream("org/apache/commons/compress/arj/zero_sized_headers.arj")) { + try (InputStream in = newInputStream("org/apache/commons/compress/arj/zero_sized_headers-fail.arj")) { final ArchiveException ex = assertThrows(ArchiveException.class, () -> { try (ArjArchiveInputStream archive = new ArjArchiveInputStream(in)) { // empty diff --git a/src/test/resources/org/apache/commons/compress/arj/zero_sized_headers.arj b/src/test/resources/org/apache/commons/compress/arj/zero_sized_headers-fail.arj similarity index 100% rename from src/test/resources/org/apache/commons/compress/arj/zero_sized_headers.arj rename to src/test/resources/org/apache/commons/compress/arj/zero_sized_headers-fail.arj