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


The following commit(s) were added to refs/heads/master by this push:
     new f2294f764 Use JUnit 5 conventions
f2294f764 is described below

commit f2294f76476bc3d64eb2c2b8091ca80b03293962
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Jun 15 20:05:29 2026 +0000

    Use JUnit 5 conventions
---
 src/test/java/org/apache/commons/lang3/RandomStringUtilsTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/lang3/RandomStringUtilsTest.java 
b/src/test/java/org/apache/commons/lang3/RandomStringUtilsTest.java
index ab0c3717f..d294b28f5 100644
--- a/src/test/java/org/apache/commons/lang3/RandomStringUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/RandomStringUtilsTest.java
@@ -108,7 +108,7 @@ void testConstructor() {
      * </p>
      */
     @Test
-    public void testCustomLetterCharsArrayDoesNotThrowIAE() {
+    void testCustomLetterCharsArrayDoesNotThrowIAE() {
         final char[] letters = { 'a', 'b', 'c' };
         assertDoesNotThrow(() -> {
             final String result = RandomStringUtils.random(5, 0, 0, true, 
false, letters, new Random(42));
@@ -450,7 +450,7 @@ void testNonASCIINumbers(final RandomStringUtils rsu) {
      * </ul>
      */
     @Test
-    public void testOnlyRejectedCodePoints() {
+    void testOnlyRejectedCodePoints() {
         assertTimeout(Duration.ofSeconds(2),
                 () -> assertThrows(IllegalArgumentException.class, () -> 
RandomStringUtils.random(1, 0xE000, 0xF900, false, false, null, new 
Random(42))));
     }

Reply via email to