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 ea32bf9c9b527e1895662ea8bfb25e99333f3383 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Apr 27 13:38:57 2024 -0400 Replace vague assertion message with JUnit message --- .../apache/commons/compress/archivers/ar/ArArchiveOutputStreamTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStreamTest.java b/src/test/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStreamTest.java index 20f05503f..4759df672 100644 --- a/src/test/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStreamTest.java +++ b/src/test/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStreamTest.java @@ -37,7 +37,7 @@ public class ArArchiveOutputStreamTest extends AbstractTest { public void testLongFileNamesCauseExceptionByDefault() throws IOException { try (ArArchiveOutputStream os = new ArArchiveOutputStream(new ByteArrayOutputStream())) { final ArArchiveEntry ae = new ArArchiveEntry("this_is_a_long_name.txt", 0); - final IOException ex = assertThrows(IOException.class, () -> os.putArchiveEntry(ae), "Expected an exception"); + final IOException ex = assertThrows(IOException.class, () -> os.putArchiveEntry(ae)); assertTrue(ex.getMessage().startsWith("File name too long")); } }