< prev index next >

test/java/lang/invoke/modules/ModuleAccessControlTest.java

Print this page

        

*** 24,34 **** 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 org.testng.annotations.BeforeTest; import org.testng.annotations.Test; import static org.testng.Assert.*; --- 24,34 ---- import java.nio.file.Path; import java.nio.file.Paths; import java.util.Arrays; import java.util.List; ! import static jdk.testlibrary.ProcessTools.executeModularTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; import static org.testng.Assert.*;
*** 67,81 **** /** * Launch the test */ @Test public void runTest() throws Exception { ! int exitValue = executeTestJava("-mp", MODS_DIR.toString(), ! "-m", "m1/p1.Main") ! .outputTo(System.out) ! .errorTo(System.out) ! .getExitValue(); assertTrue(exitValue == 0); } } --- 67,78 ---- /** * Launch the test */ @Test public void runTest() throws Exception { ! int exitValue = executeModularTest("m1", "p1.Main", ! null, null, Arrays.asList(MODS_DIR), null).getExitValue(); assertTrue(exitValue == 0); } }
< prev index next >