You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12345678910111213 |
-
- public class SystemPropertiesTest {
- public static void main(String[] args) {
- boolean pass = Boolean.getBoolean("PASS");
- if (!pass) {
- throw new RuntimeException("failed to get Boolean \"PASS\"");
- }
- String value = System.getProperty("name", null);
- if (!"value".equals(value)) {
- throw new RuntimeException("failed to get name=\"value\": " + value);
- }
- }
- }
|