< prev index next >
jdk/test/java/util/ServiceLoader/modules/ServicesTest.java
Print this page
@@ -103,17 +103,17 @@
}
/**
- * Run test with -modulepath.
+ * Run test with --module-path.
*
* BananaScriptEngine should be found.
*/
public void runWithModulePath() throws Exception {
int exitValue
- = executeTestJava("-mp", MODS_DIR.toString(),
+ = executeTestJava("--module-path", MODS_DIR.toString(),
"-m", "test/test.Main",
"BananaScriptEngine")
.outputTo(System.out)
.errorTo(System.out)
.getExitValue();
@@ -121,17 +121,17 @@
assertTrue(exitValue == 0);
}
/**
- * Run test with -modulepath and -classpath.
+ * Run test with --module-path and -classpath.
*
* Both BananaScriptEngine and PearScriptEngine should be found
*/
public void runWithModulePathAndClassPath() throws Exception {
int exitValue
- = executeTestJava("-mp", MODS_DIR.toString(),
+ = executeTestJava("--module-path", MODS_DIR.toString(),
"-cp", CLASSES_DIR.toString(),
"-m", "test/test.Main",
"BananaScriptEngine", "PearScriptEngine")
.outputTo(System.out)
.errorTo(System.out)
< prev index next >