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"
This commit is contained in:
Benedikt Ritter 2016-09-25 19:50:48 +02:00
parent 8f362e7eab
commit d0f6be9886
No known key found for this signature in database
GPG Key ID: 9DAADC1C9FCC82D0
1 changed files with 1 additions and 1 deletions

View File

@ -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);