publicstaticvoid main(String... args) throws Exception { new TestSpecialArgs().run(args);
}
@Test void testDocking() { final Map<String, String> envMap = new HashMap<>();
envMap.put("_JAVA_LAUNCHER_DEBUG", "true");
TestResult tr = doExec(envMap, javaCmd, "-XstartOnFirstThread", "-version"); if (isMacOSX) { if (!tr.contains("In same thread")) {
System.out.println(tr); thrownew RuntimeException("Error: not running in the same thread ?");
} if (!tr.isOK()) {
System.out.println(tr); thrownew RuntimeException("Error: arg was rejected ????");
}
} else { if (tr.isOK()) {
System.out.println(tr); thrownew RuntimeException("Error: argument was accepted ????");
}
}
tr = doExec(javaCmd, "-Xdock:/tmp/not-available", "-version"); if (isMacOSX) { if (!tr.isOK()) {
System.out.println(tr); thrownew RuntimeException("Error: arg was rejected ????");
}
} else { if (tr.isOK()) {
System.out.println(tr); thrownew RuntimeException("Error: argument was accepted ????");
}
} // MacOSX specific tests ensue...... if (!isMacOSX) { return;
}
Set<String> envToRemove = new HashSet<>();
Map<String, String> map = System.getenv(); for (String s : map.keySet()) { if (s.startsWith("APP_NAME_")
|| s.startsWith("APP_ICON_")) {
envToRemove.add(s);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.