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 2023/11/03 13:25:35 UTC

(commons-codec) branch master updated (04e220fb -> e53ac020)

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

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


    from 04e220fb Clarifies Java platform requirement
     new e1bc2713 Normalize test method names
     new e53ac020 Sort test members

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../java/org/apache/commons/codec/binary/Base16Test.java     | 12 ++++++------
 .../java/org/apache/commons/codec/digest/Blake3Test.java     |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)


(commons-codec) 01/02: Normalize test method names

Posted by gg...@apache.org.
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 e1bc2713d5f31e0a04017c9fc6ba4b9e49c8efa2
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Nov 3 09:25:09 2023 -0400

    Normalize test method names
---
 src/test/java/org/apache/commons/codec/binary/Base16Test.java | 2 +-
 src/test/java/org/apache/commons/codec/digest/Blake3Test.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/codec/binary/Base16Test.java b/src/test/java/org/apache/commons/codec/binary/Base16Test.java
index 53856f0a..20481a1a 100644
--- a/src/test/java/org/apache/commons/codec/binary/Base16Test.java
+++ b/src/test/java/org/apache/commons/codec/binary/Base16Test.java
@@ -46,7 +46,7 @@ public class Base16Test {
     private final Random random = new Random();
 
     @Test
-    public void checkEncodeLengthBounds() {
+    public void testCheckEncodeLengthBounds() {
         final Base16 base16 = new Base16();
         assertThrows(IllegalArgumentException.class, () -> base16.encode(new byte[10], 0, 1 << 30));
     }
diff --git a/src/test/java/org/apache/commons/codec/digest/Blake3Test.java b/src/test/java/org/apache/commons/codec/digest/Blake3Test.java
index fbfdae0e..67b6995a 100644
--- a/src/test/java/org/apache/commons/codec/digest/Blake3Test.java
+++ b/src/test/java/org/apache/commons/codec/digest/Blake3Test.java
@@ -26,7 +26,7 @@ public class Blake3Test {
     }
 
     @Test
-    public void shouldThrowIllegalArgumentExceptionWhenIncorrectKeySize() {
+    public void testShouldThrowIllegalArgumentExceptionWhenIncorrectKeySize() {
         for (int i = 0; i < 32; i++) {
             assertThrowsProperExceptionWithKeySize(i);
         }


(commons-codec) 02/02: Sort test members

Posted by gg...@apache.org.
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 e53ac0201b1a5cab57d20563672b20fd5abacec1
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Nov 3 09:25:30 2023 -0400

    Sort test members
---
 .../java/org/apache/commons/codec/binary/Base16Test.java     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/test/java/org/apache/commons/codec/binary/Base16Test.java b/src/test/java/org/apache/commons/codec/binary/Base16Test.java
index 20481a1a..804146a7 100644
--- a/src/test/java/org/apache/commons/codec/binary/Base16Test.java
+++ b/src/test/java/org/apache/commons/codec/binary/Base16Test.java
@@ -45,12 +45,6 @@ public class Base16Test {
 
     private final Random random = new Random();
 
-    @Test
-    public void testCheckEncodeLengthBounds() {
-        final Base16 base16 = new Base16();
-        assertThrows(IllegalArgumentException.class, () -> base16.encode(new byte[10], 0, 1 << 30));
-    }
-
     /**
      * @return Returns the random.
      */
@@ -114,6 +108,12 @@ public class Base16Test {
         assertNull(StringUtils.newStringUtf8(new Base16().encode(b3)), "byteToString static null");
     }
 
+    @Test
+    public void testCheckEncodeLengthBounds() {
+        final Base16 base16 = new Base16();
+        assertThrows(IllegalArgumentException.class, () -> base16.encode(new byte[10], 0, 1 << 30));
+    }
+
     /**
      * isBase16 throws RuntimeException on some
      * non-Base16 bytes