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 c0168c3fdd3c7a23b9e4ddceb0aad262b6b5613f Author: Gary Gregory <[email protected]> AuthorDate: Sat Jun 13 12:04:55 2026 +0000 Refactor NumberUtilsTest.testCreateIntegerFailure() test using @ParameterizedTest --- src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java | 1 + 1 file changed, 1 insertion(+) 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 903d1ca42..20fc79c5e 100644 --- a/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java @@ -572,6 +572,7 @@ void testCreateInteger() { // @formatter:on protected void testCreateIntegerFailure(final String str) { assertThrows(NumberFormatException.class, () -> NumberUtils.createInteger(str), "createInteger(\"" + str + "\") should have failed."); + assertThrows(NumberFormatException.class, () -> Integer.valueOf(str)); } @Test
