< prev index next >

test/java/util/ResourceBundle/modules/security/TestPermission.java

Print this page

        

@@ -24,11 +24,11 @@
 import java.nio.file.Path;
 import java.nio.file.Paths;
 import java.util.Arrays;
 import java.util.List;
 
-import static jdk.testlibrary.ProcessTools.executeTestJava;
+import static jdk.testlibrary.ProcessTools.executeModularTest;
 
 import org.testng.annotations.BeforeTest;
 import org.testng.annotations.Test;
 import static org.testng.Assert.*;
 

@@ -66,14 +66,11 @@
     /**
      * Run the modular test
      */
     @Test
     public void runTest() throws Exception {
-        int exitValue = executeTestJava("-mp", MODS_DIR.toString(),
-                                        "-m", "test/jdk.test.Main")
-                            .outputTo(System.out)
-                            .errorTo(System.out)
-                            .getExitValue();
+        int exitValue = executeModularTest("test", "jdk.test.Main", null, null,
+            Arrays.asList(MODS_DIR), null).getExitValue();
 
         assertTrue(exitValue == 0);
     }
 }
< prev index next >