|
25 | 25 | import static org.junit.jupiter.api.Assumptions.assumeTrue; |
26 | 26 |
|
27 | 27 | import org.junit.jupiter.api.Test; |
| 28 | +import org.junit.jupiter.api.function.ThrowingSupplier; |
28 | 29 |
|
29 | 30 | public class SystemPropertiesTest { |
30 | 31 |
|
@@ -107,6 +108,7 @@ public void testActualKeys() { |
107 | 108 | basicKeyCheck(SystemProperties.JAVA_RUNTIME_NAME); |
108 | 109 | basicKeyCheck(SystemProperties.JAVA_RUNTIME_VERSION); |
109 | 110 | basicKeyCheck(SystemProperties.JAVA_SECURITY_AUTH_LOGIN_CONFIG); |
| 111 | + basicKeyCheck(SystemProperties.JAVA_SECURITY_DEBUG); |
110 | 112 | basicKeyCheck(SystemProperties.JAVA_SECURITY_MANAGER); |
111 | 113 | basicKeyCheck(SystemProperties.JAVA_SPECIFICATION_MAINTENANCE_VERSION); |
112 | 114 | basicKeyCheck(SystemProperties.JAVA_SPECIFICATION_NAME); |
@@ -325,7 +327,7 @@ public void testGetDoesNotThrow() { |
325 | 327 | assertDoesNotThrow(SystemProperties::getJavaSpecificationMaintenanceVersion); |
326 | 328 | assertDoesNotThrow(SystemProperties::getJavaSpecificationName); |
327 | 329 | assertDoesNotThrow(SystemProperties::getJavaSpecificationVendor); |
328 | | - assertDoesNotThrow(() -> SystemProperties.getJavaSpecificationVersion()); |
| 330 | + assertDoesNotThrow((ThrowingSupplier<String>) SystemProperties::getJavaSpecificationVersion); |
329 | 331 | assertDoesNotThrow(SystemProperties::getJavaSystemClassLoader); |
330 | 332 | assertDoesNotThrow(SystemProperties::getJavaTimeZoneDefaultZoneRulesProvider); |
331 | 333 | assertDoesNotThrow(SystemProperties::getJavaUtilConcurrentForkJoinPoolCommonExceptionHandler); |
@@ -417,7 +419,7 @@ public void testGetDoesNotThrow() { |
417 | 419 | assertDoesNotThrow(SystemProperties::getJdkXmlResetSymbolTable); |
418 | 420 | assertDoesNotThrow(SystemProperties::getJdkXmlTotalEntitySizeLimit); |
419 | 421 | assertDoesNotThrow(SystemProperties::getJdkXmlXsltcIsStandalone); |
420 | | - assertDoesNotThrow(() -> SystemProperties.getLineSeparator()); |
| 422 | + assertDoesNotThrow((ThrowingSupplier<String>) SystemProperties::getLineSeparator); |
421 | 423 | assertDoesNotThrow(SystemProperties::getNativeEncoding); |
422 | 424 | assertDoesNotThrow(SystemProperties::getNetworkAddressCacheNegativeTtl); |
423 | 425 | assertDoesNotThrow(SystemProperties::getNetworkAddressCacheStaleTtl); |
@@ -446,7 +448,7 @@ public void testGetDoesNotThrow() { |
446 | 448 | assertDoesNotThrow(SystemProperties::getUserExtensions); |
447 | 449 | assertDoesNotThrow(SystemProperties::getUserHome); |
448 | 450 | assertDoesNotThrow(SystemProperties::getUserLanguage); |
449 | | - assertDoesNotThrow(() -> SystemProperties.getUserName()); |
| 451 | + assertDoesNotThrow((ThrowingSupplier<String>) SystemProperties::getUserName); |
450 | 452 | assertDoesNotThrow(SystemProperties::getUserRegion); |
451 | 453 | assertDoesNotThrow(SystemProperties::getUserScript); |
452 | 454 | assertDoesNotThrow(SystemProperties::getUserTimezone); |
|
0 commit comments