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.
123456789101112131415 |
-
- public class SystemPropertiesTest {
- public static void main(String[] args) {
- boolean pass = Boolean.getBoolean("PASS");
- if (!pass) {
- throw new Error("failed to get Boolean \\\"PASS\\\"");
- }
- String value = System.getProperty("name", null);
- if (!"value".equals(value)) {
- throw new Error("failed to get name=\"value\": " + value);
- }
- }
- }
-
|