Skip to content

Commit 7ebab00

Browse files
committed
Disable debug output in org.apache.commons.lang3.math.NumberUtilsTest
Add a debug toggle for this test
1 parent 0a40edb commit 7ebab00

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/org/apache/commons/lang3/math/NumberUtilsTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import java.util.function.Function;
3737

3838
import org.apache.commons.lang3.AbstractLangTest;
39+
import org.apache.commons.lang3.SystemProperties;
3940
import org.junit.jupiter.api.Test;
4041
import org.junit.jupiter.params.ParameterizedTest;
4142
import org.junit.jupiter.params.provider.ValueSource;
@@ -108,7 +109,7 @@ private boolean isApplyNonNull(final String s, final Function<String, ?> functio
108109
assertNotNull(function.apply(s));
109110
return true;
110111
} catch (final Exception e) {
111-
if (!s.matches(".*\\s.*")) {
112+
if (!s.matches(".*\\s.*") && SystemProperties.getBoolean(getClass(), "printStackTrace", () -> false)) {
112113
e.printStackTrace();
113114
}
114115
return false;

0 commit comments

Comments
 (0)