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:
parent
8f362e7eab
commit
d0f6be9886
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue