You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2025/12/17 21:13:45 UTC
(poi) 04/04: Improve message if test fails
This is an automated email from the ASF dual-hosted git repository.
centic pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git
commit fd66689944132934845f177bdd52b17822f600d1
Author: Dominik Stadler <do...@gmx.at>
AuthorDate: Wed Dec 17 21:38:38 2025 +0100
Improve message if test fails
---
poi-scratchpad/src/test/java/org/apache/poi/hmef/TestHMEFMessage.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hmef/TestHMEFMessage.java b/poi-scratchpad/src/test/java/org/apache/poi/hmef/TestHMEFMessage.java
index 5a12ac6426..e40aef9b1e 100644
--- a/poi-scratchpad/src/test/java/org/apache/poi/hmef/TestHMEFMessage.java
+++ b/poi-scratchpad/src/test/java/org/apache/poi/hmef/TestHMEFMessage.java
@@ -237,9 +237,8 @@ public final class TestHMEFMessage {
static void assertContents(String filename, byte[] actual) throws IOException {
try (InputStream stream = _samples.openResourceAsStream("quick-contents/" + filename)) {
byte[] expected = IOUtils.toByteArray(stream);
- assertArrayEquals(expected, actual);
+ assertArrayEquals(expected, actual, "Data comparison failed for " + filename);
}
}
}
-
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org