commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject [lang] Update test for Java 11 EA.
Date Thu, 29 Mar 2018 17:52:09 GMT
Repository: commons-lang
Updated Branches:
  refs/heads/master c53c2cbc1 -> 56b7ae44f


Update test for Java 11 EA.

Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/56b7ae44
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/56b7ae44
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/56b7ae44

Branch: refs/heads/master
Commit: 56b7ae44f957aeb884efc797ec74c790a7a3abae
Parents: c53c2cb
Author: Gary Gregory <garydgregory@gmail.com>
Authored: Thu Mar 29 11:52:05 2018 -0600
Committer: Gary Gregory <garydgregory@gmail.com>
Committed: Thu Mar 29 11:52:05 2018 -0600

----------------------------------------------------------------------
 .../org/apache/commons/lang3/SystemUtilsTest.java | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/56b7ae44/src/test/java/org/apache/commons/lang3/SystemUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/lang3/SystemUtilsTest.java b/src/test/java/org/apache/commons/lang3/SystemUtilsTest.java
index 8e5610c..77e6078 100644
--- a/src/test/java/org/apache/commons/lang3/SystemUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/SystemUtilsTest.java
@@ -122,6 +122,7 @@ public class SystemUtilsTest {
             assertFalse(SystemUtils.IS_JAVA_1_9);
             assertFalse(SystemUtils.IS_JAVA_9);
             assertFalse(SystemUtils.IS_JAVA_10);
+            assertFalse(SystemUtils.IS_JAVA_11);
         } else if (javaVersion.startsWith("1.7")) {
             assertFalse(SystemUtils.IS_JAVA_1_1);
             assertFalse(SystemUtils.IS_JAVA_1_2);
@@ -134,6 +135,7 @@ public class SystemUtilsTest {
             assertFalse(SystemUtils.IS_JAVA_1_9);
             assertFalse(SystemUtils.IS_JAVA_9);
             assertFalse(SystemUtils.IS_JAVA_10);
+            assertFalse(SystemUtils.IS_JAVA_11);
         } else if (javaVersion.startsWith("1.8")) {
             assertFalse(SystemUtils.IS_JAVA_1_1);
             assertFalse(SystemUtils.IS_JAVA_1_2);
@@ -146,6 +148,7 @@ public class SystemUtilsTest {
             assertFalse(SystemUtils.IS_JAVA_1_9);
             assertFalse(SystemUtils.IS_JAVA_9);
             assertFalse(SystemUtils.IS_JAVA_10);
+            assertFalse(SystemUtils.IS_JAVA_11);
         } else if (javaVersion.startsWith("9")) {
             assertFalse(SystemUtils.IS_JAVA_1_1);
             assertFalse(SystemUtils.IS_JAVA_1_2);
@@ -158,6 +161,7 @@ public class SystemUtilsTest {
             assertTrue(SystemUtils.IS_JAVA_1_9);
             assertTrue(SystemUtils.IS_JAVA_9);
             assertFalse(SystemUtils.IS_JAVA_10);
+            assertFalse(SystemUtils.IS_JAVA_11);
         } else if (javaVersion.startsWith("10")) {
             assertFalse(SystemUtils.IS_JAVA_1_1);
             assertFalse(SystemUtils.IS_JAVA_1_2);
@@ -170,6 +174,20 @@ public class SystemUtilsTest {
             assertFalse(SystemUtils.IS_JAVA_1_9);
             assertFalse(SystemUtils.IS_JAVA_9);
             assertTrue(SystemUtils.IS_JAVA_10);
+            assertFalse(SystemUtils.IS_JAVA_11);
+        } else if (javaVersion.startsWith("11")) {
+            assertFalse(SystemUtils.IS_JAVA_1_1);
+            assertFalse(SystemUtils.IS_JAVA_1_2);
+            assertFalse(SystemUtils.IS_JAVA_1_3);
+            assertFalse(SystemUtils.IS_JAVA_1_4);
+            assertFalse(SystemUtils.IS_JAVA_1_5);
+            assertFalse(SystemUtils.IS_JAVA_1_6);
+            assertFalse(SystemUtils.IS_JAVA_1_7);
+            assertFalse(SystemUtils.IS_JAVA_1_8);
+            assertFalse(SystemUtils.IS_JAVA_1_9);
+            assertFalse(SystemUtils.IS_JAVA_9);
+            assertFalse(SystemUtils.IS_JAVA_10);
+            assertTrue(SystemUtils.IS_JAVA_11);
         } else {
             System.out.println("Can't test IS_JAVA value: " + javaVersion);
         }


Mime
View raw message