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-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 7ebab00f4 Disable debug output in
org.apache.commons.lang3.math.NumberUtilsTest
7ebab00f4 is described below
commit 7ebab00f402277ef061410a7a51deb9c3e5aa93b
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Feb 21 07:14:45 2026 -0500
Disable debug output in org.apache.commons.lang3.math.NumberUtilsTest
Add a debug toggle for this test
---
src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 105dda462..a41842c0d 100644
--- a/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java
@@ -36,6 +36,7 @@
import java.util.function.Function;
import org.apache.commons.lang3.AbstractLangTest;
+import org.apache.commons.lang3.SystemProperties;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
@@ -108,7 +109,7 @@ private boolean isApplyNonNull(final String s, final
Function<String, ?> functio
assertNotNull(function.apply(s));
return true;
} catch (final Exception e) {
- if (!s.matches(".*\\s.*")) {
+ if (!s.matches(".*\\s.*") &&
SystemProperties.getBoolean(getClass(), "printStackTrace", () -> false)) {
e.printStackTrace();
}
return false;