jdk/test/java/util/ResourceBundle/modules/security/TestPermission.java
changeset 40261 86a49ba76f52
parent 36511 9d0388c6b336
child 40797 4618571397a5
equal deleted inserted replaced
40260:4e69b50ccd97 40261:86a49ba76f52
    57      */
    57      */
    58     @BeforeTest
    58     @BeforeTest
    59     public void compileAll() throws Exception {
    59     public void compileAll() throws Exception {
    60         for (String mn : modules) {
    60         for (String mn : modules) {
    61             Path msrc = SRC_DIR.resolve(mn);
    61             Path msrc = SRC_DIR.resolve(mn);
    62             assertTrue(CompilerUtils.compile(msrc, MODS_DIR, "-modulesourcepath", SRC_DIR.toString()));
    62             assertTrue(CompilerUtils.compile(msrc, MODS_DIR, "--module-source-path", SRC_DIR.toString()));
    63         }
    63         }
    64     }
    64     }
    65 
    65 
    66     /**
    66     /**
    67      * Run the modular test
    67      * Run the modular test
    68      */
    68      */
    69     @Test
    69     @Test
    70     public void runTest() throws Exception {
    70     public void runTest() throws Exception {
    71         int exitValue = executeTestJava("-mp", MODS_DIR.toString(),
    71         int exitValue = executeTestJava("--module-path", MODS_DIR.toString(),
    72                                         "-m", "test/jdk.test.Main")
    72                                         "-m", "test/jdk.test.Main")
    73                             .outputTo(System.out)
    73                             .outputTo(System.out)
    74                             .errorTo(System.out)
    74                             .errorTo(System.out)
    75                             .getExitValue();
    75                             .getExitValue();
    76 
    76