--- old/test/java/util/logging/modules/GetResourceBundleTest.java 2016-06-22 11:14:19.000000000 -0700 +++ new/test/java/util/logging/modules/GetResourceBundleTest.java 2016-06-22 11:14:18.000000000 -0700 @@ -24,6 +24,8 @@ import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; +import java.util.Collections; +import java.util.Arrays; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; @@ -82,27 +84,17 @@ @Test public void runWithoutSecurityManager() throws Exception { - int exitValue = executeTestJava( - "-cp", PKG_DEST_DIR.toString(), - "-mp", MOD_DEST_DIR.toString(), - "-addmods", String.join(",", modules), - "p3.test.ResourceBundleTest") - .outputTo(System.out) - .errorTo(System.err) + int exitValue = executeModularTest(null, "p3.test.ResourceBundleTest", null, + Arrays.asList(PKG_DEST_DIR), Arrays.asList(MOD_DEST_DIR), Arrays.asList(modules)) .getExitValue(); assertTrue(exitValue == 0); } @Test public void runWithSecurityManager() throws Exception { - int exitValue = executeTestJava( - "-Djava.security.manager", - "-cp", PKG_DEST_DIR.toString(), - "-mp", MOD_DEST_DIR.toString(), - "-addmods", String.join(",", modules), - "p3.test.ResourceBundleTest") - .outputTo(System.out) - .errorTo(System.err) + int exitValue = executeModularTest(null, "p3.test.ResourceBundleTest", + Arrays.asList("-Djava.security.manager"), + Arrays.asList(PKG_DEST_DIR), Arrays.asList(MOD_DEST_DIR), Arrays.asList(modules)) .getExitValue(); assertTrue(exitValue == 0); }