< prev index next >
test/jdk/modules/scenarios/container/ContainerTest.java
Print this page
@@ -33,10 +33,11 @@
*/
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
+import java.util.Arrays;
import static jdk.testlibrary.ProcessTools.*;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
@@ -132,14 +133,12 @@
* Launches the container
*/
public void testContainer() throws Exception {
int exitValue
- = executeTestJava("-mp", MLIB_DIR.toString(),
- "-m", CONTAINER_MODULE)
- .outputTo(System.out)
- .errorTo(System.err)
+ = executeModularTest(CONTAINER_MODULE, null, null, null,
+ Arrays.asList(MLIB_DIR), null)
.getExitValue();
assertTrue(exitValue == 0);
}
< prev index next >