org.aspectj/tests/harness/SystemPropertiesTest.java

16 lines
425 B
Java
Raw Normal View History

2004-10-06 10:40:36 +02:00
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);
}
}
}