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 cbab9f6d35f44bd1ea6a9068ebbc0552721aea6c
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Nov 14 09:10:15 2023 -0500

    Sort members
---
 .../archivers/arj/ArjArchiveInputStreamTest.java     | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

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 697a21964..f8b063bda 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
@@ -60,6 +60,16 @@ public class ArjArchiveInputStreamTest extends AbstractTest {
         assertEquals(result.toString(), expected.toString());
     }
 
+    @Test
+    public void testFirstHeaderSizeSetToZero() throws Exception {
+        try (InputStream in = newInputStream("arj/zero_sized_headers.arj")) {
+            final ArchiveException ex = assertThrows(ArchiveException.class, 
() -> {
+                ArjArchiveInputStream archive = new ArjArchiveInputStream(in);
+            });
+            assertTrue(ex.getCause() instanceof IOException);
+        }
+    }
+
     @Test
     public void testMultiByteReadConsistentlyReturnsMinusOneAtEof() throws 
Exception {
         final byte[] buf = new byte[2];
@@ -111,14 +121,4 @@ public class ArjArchiveInputStreamTest extends 
AbstractTest {
         }
     }
 
-    @Test
-    public void testFirstHeaderSizeSetToZero() throws Exception {
-        try (InputStream in = newInputStream("arj/zero_sized_headers.arj")) {
-            final ArchiveException ex = assertThrows(ArchiveException.class, 
() -> {
-                ArjArchiveInputStream archive = new ArjArchiveInputStream(in);
-            });
-            assertTrue(ex.getCause() instanceof IOException);
-        }
-    }
-
 }

Reply via email to