You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/02/28 02:47:08 UTC

(commons-compress) branch master updated: Better failure message

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 48c076ecd Better failure message
48c076ecd is described below

commit 48c076ecda1fc8656122bf5bdc03ad31e07dda1e
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Feb 27 21:47:03 2024 -0500

    Better failure message
---
 .../commons/compress/archivers/tar/TarArchiveInputStreamTest.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java b/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java
index 37e4e9fed..9e88fb046 100644
--- a/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java
@@ -36,6 +36,7 @@ import java.io.InputStream;
 import java.io.OutputStream;
 import java.nio.file.Files;
 import java.nio.file.Path;
+import java.util.Arrays;
 import java.util.Calendar;
 import java.util.Date;
 import java.util.TimeZone;
@@ -279,7 +280,7 @@ public class TarArchiveInputStreamTest extends AbstractTest {
             final byte[] expected = { 'H', 'e', 'l', 'l', 'o', ',', ' ', 'w', 'o', 'r', 'l', 'd', '!', '\n' };
             final byte[] actual = new byte[expected.length];
             is.read(actual);
-            assertArrayEquals(expected, actual);
+            assertArrayEquals(expected, actual, () -> Arrays.toString(actual));
         }
     }