Repository: commons-lang Updated Branches: refs/heads/master 8f362e7ea -> d0f6be988
Fix test for IS_JAVA_XX constants. The test would never check anything, since it tested against the java.specification.name property, which has the value "Java Platform API Specification" Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/d0f6be98 Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/d0f6be98 Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/d0f6be98 Branch: refs/heads/master Commit: d0f6be9886afaee6080cd4b7cd5d165c767b71f0 Parents: 8f362e7 Author: Benedikt Ritter <brit...@apache.org> Authored: Sun Sep 25 19:50:48 2016 +0200 Committer: Benedikt Ritter <brit...@apache.org> Committed: Sun Sep 25 19:52:50 2016 +0200 ---------------------------------------------------------------------- src/test/java/org/apache/commons/lang3/SystemUtilsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-lang/blob/d0f6be98/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 9b61442..428beda 100644 --- a/src/test/java/org/apache/commons/lang3/SystemUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/SystemUtilsTest.java @@ -94,7 +94,7 @@ public class SystemUtilsTest { @Test @SuppressWarnings("deprecation") public void testIS_JAVA() { - final String javaVersion = System.getProperty("java.specification.name"); + final String javaVersion = SystemUtils.JAVA_VERSION; if (javaVersion == null) { assertFalse(SystemUtils.IS_JAVA_1_1); assertFalse(SystemUtils.IS_JAVA_1_2);