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-validator.git
The following commit(s) were added to refs/heads/master by this push:
new a0f73b01 Update test for Java 8 vs newer versions.
a0f73b01 is described below
commit a0f73b016a2d0a790db6cf99d71366887b4e4856
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Jun 4 08:19:12 2026 -0400
Update test for Java 8 vs newer versions.
---
.../java/org/apache/commons/validator/routines/DoubleValidatorTest.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/src/test/java/org/apache/commons/validator/routines/DoubleValidatorTest.java
b/src/test/java/org/apache/commons/validator/routines/DoubleValidatorTest.java
index 1936afdd..2c8c3dc6 100644
---
a/src/test/java/org/apache/commons/validator/routines/DoubleValidatorTest.java
+++
b/src/test/java/org/apache/commons/validator/routines/DoubleValidatorTest.java
@@ -27,6 +27,7 @@ import java.util.Locale;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledForJreRange;
+import org.junit.jupiter.api.condition.EnabledOnJre;
import org.junit.jupiter.api.condition.JRE;
/**
@@ -151,6 +152,7 @@ class DoubleValidatorTest extends
AbstractNumberValidatorTest {
* "-Infinity" cause a parse error and return null.
*/
@Test
+ @EnabledOnJre(JRE.JAVA_8)
void testDoubleValidateSpecialValuesJava8() {
final DoubleValidator validator = DoubleValidator.getInstance();
// Double.NaN -> "NaN": NumberFormat parses "NaN" successfully