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
commit 6674bb3c3eb32bcb2f79eae2f26495e422a7b492 Author: Gary Gregory <[email protected]> AuthorDate: Sat Jun 13 12:05:50 2026 +0000 Follow JUnit 5 convention --- src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java b/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java index 20fc79c5e..5104d4bf9 100644 --- a/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java @@ -457,7 +457,7 @@ void testCreateBigDecimal() { "++", "++0" }) // @formatter:on - protected void testCreateBigDecimalFailure(final String str) { + void testCreateBigDecimalFailure(final String str) { assertThrows(NumberFormatException.class, () -> NumberUtils.createBigDecimal(str), "createBigDecimal(\"" + str + "\") should have failed."); // Should match java.math.BigInteger.BigInteger(String) assertThrows(NumberFormatException.class, () -> new BigDecimal(str)); @@ -528,7 +528,7 @@ void testCreateDouble() { // Funky whitespaces "\u00A0\uFEFF\u000B\u000C\u001C\u001D\u001E\u001F" }) // @formatter:on - protected void testCreateDoubleFailure(final String str) { + void testCreateDoubleFailure(final String str) { assertThrows(NumberFormatException.class, () -> NumberUtils.createDouble(str), "createDouble(\"" + str + "\") should have failed."); assertThrows(NumberFormatException.class, () -> Double.valueOf(str)); } @@ -548,7 +548,7 @@ void testCreateFloat() { // Funky whitespaces "\u00A0\uFEFF\u000B\u000C\u001C\u001D\u001E\u001F" }) // @formatter:on - protected void testCreateFloatFailure(final String str) { + void testCreateFloatFailure(final String str) { assertThrows(NumberFormatException.class, () -> NumberUtils.createFloat(str), "createFloat(\"" + str + "\") should have failed."); assertThrows(NumberFormatException.class, () -> Float.valueOf(str)); } @@ -570,7 +570,7 @@ void testCreateInteger() { // Funky whitespaces "\u00A0\uFEFF\u000B\u000C\u001C\u001D\u001E\u001F" }) // @formatter:on - protected void testCreateIntegerFailure(final String str) { + void testCreateIntegerFailure(final String str) { assertThrows(NumberFormatException.class, () -> NumberUtils.createInteger(str), "createInteger(\"" + str + "\") should have failed."); assertThrows(NumberFormatException.class, () -> Integer.valueOf(str)); }
