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-codec.git

commit 431fd328c596791f3a20931314fe2a4871811499
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Mar 1 10:20:53 2026 -0500

    Use assertArrayEquals()
---
 src/test/java/org/apache/commons/codec/binary/Base32Test.java | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/test/java/org/apache/commons/codec/binary/Base32Test.java 
b/src/test/java/org/apache/commons/codec/binary/Base32Test.java
index 91d87917..823d6ae4 100644
--- a/src/test/java/org/apache/commons/codec/binary/Base32Test.java
+++ b/src/test/java/org/apache/commons/codec/binary/Base32Test.java
@@ -24,7 +24,6 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
 import static org.junit.jupiter.api.Assertions.assertNull;
 import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.junit.jupiter.api.Assertions.assertTrue;
-import static org.junit.jupiter.api.Assertions.fail;
 
 import java.nio.charset.Charset;
 import java.nio.charset.StandardCharsets;
@@ -554,9 +553,7 @@ class Base32Test {
             codec.encode(unencoded, 0, -1, context);
             final byte[] singly = new byte[allInOne.length];
             codec.readResults(singly, 0, 100, context);
-            if (!Arrays.equals(allInOne, singly)) {
-                fail();
-            }
+            assertArrayEquals(allInOne, singly);
         }
     }
 }

Reply via email to