mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
16 lines
425 B
Java
16 lines
425 B
Java
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
|
|
|