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 2d0379de9 Add test_LANG_1698
2d0379de9 is described below

commit 2d0379de9b2c63b53d6c55c240ff5bede8beaec8
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Jul 23 08:44:24 2023 -0400

    Add test_LANG_1698
---
 src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java 
b/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
index 69cf57975..2d843e7e4 100644
--- a/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
@@ -22,6 +22,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertNull;
 import static org.junit.jupiter.api.Assertions.assertThrows;
 import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assumptions.assumeTrue;
 
 import java.awt.Insets;
 import java.io.Serializable;
@@ -279,7 +280,7 @@ public class TypeUtilsTest<B> extends AbstractLangTest {
     @Test
     public void test_LANG_1698() {
         // SO on Java 17
-        SystemUtils.isJavaVersionAtMost(JavaVersion.JAVA_16);
+        assumeTrue(SystemUtils.isJavaVersionAtMost(JavaVersion.JAVA_16));
         ParameterizedType comparing = (ParameterizedType) 
Arrays.stream(Comparator.class.getDeclaredMethods())
                 .filter(k -> k.getName().equals("comparing")).findFirst()
                 
.orElse(Comparator.class.getDeclaredMethods()[0]).getGenericParameterTypes()[0];

Reply via email to