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 2026/06/18 02:19:05 UTC

(commons-codec) branch master updated: Sort members.

This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-codec.git


The following commit(s) were added to refs/heads/master by this push:
     new 7f241978 Sort members.
     new f3c046cb Merge branch 'master' of https://github.com/apache/commons-codec.git
7f241978 is described below

commit 7f24197890e089333ad02ad1e3db0174017bf00d
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Jun 18 02:18:29 2026 +0000

    Sort members.
---
 .../org/apache/commons/codec/binary/Base32Test.java    | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 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 dbc0ff3f..8c10444f 100644
--- a/src/test/java/org/apache/commons/codec/binary/Base32Test.java
+++ b/src/test/java/org/apache/commons/codec/binary/Base32Test.java
@@ -319,15 +319,6 @@ class Base32Test {
         // @formatter:on
     }
 
-    @Test
-    void testBuilderSetHexDecodeTableDecodesOwnOutput() {
-        final Base32 base32 = Base32.builder().setHexDecodeTable(true).setLineLength(0).get();
-        final byte[] data = { 0 };
-        final byte[] encoded = base32.encode(data);
-        assertEquals("00======", new String(encoded, StandardCharsets.US_ASCII));
-        assertArrayEquals(data, base32.decode(encoded));
-    }
-
     @Test
     void testBase32HexSamples() throws Exception {
         final Base32 codec = new Base32(true);
@@ -463,6 +454,15 @@ class Base32Test {
         assertEquals("MZXXQ___", Base32.builder().setLineLength(4).setPadding((byte) '_').get().encodeToString("fox".getBytes(CHARSET_UTF8)));
     }
 
+    @Test
+    void testBuilderSetHexDecodeTableDecodesOwnOutput() {
+        final Base32 base32 = Base32.builder().setHexDecodeTable(true).setLineLength(0).get();
+        final byte[] data = { 0 };
+        final byte[] encoded = base32.encode(data);
+        assertEquals("00======", new String(encoded, StandardCharsets.US_ASCII));
+        assertArrayEquals(data, base32.decode(encoded));
+    }
+
     @Test
     void testCodec200() {
         final Base32 codec = new Base32(true, (byte) 'W'); // should be allowed