test/jdk/java/util/ResourceBundle/modules/ModuleTestUtil.java
changeset 55680 cd48f8f260c8
parent 52584 5ab248e47901
equal deleted inserted replaced
55679:aa96c53c592b 55680:cd48f8f260c8
     1 /*
     1 /*
     2  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   132      * @param localeList locale list
   132      * @param localeList locale list
   133      */
   133      */
   134     public static void runModule(String mp, String mn, List<String> localeList)
   134     public static void runModule(String mp, String mn, List<String> localeList)
   135             throws Throwable {
   135             throws Throwable {
   136         JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java");
   136         JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java");
   137         launcher.addToolArg("-p")
   137         launcher.addToolArg("-ea")
       
   138                 .addToolArg("-esa")
       
   139                 .addToolArg("-p")
   138                 .addToolArg(mp)
   140                 .addToolArg(mp)
   139                 .addToolArg("-m")
   141                 .addToolArg("-m")
   140                 .addToolArg(mn);
   142                 .addToolArg(mn);
   141         localeList.forEach(launcher::addToolArg);
   143         localeList.forEach(launcher::addToolArg);
   142 
   144 
   158      * @param expected expected execution status
   160      * @param expected expected execution status
   159      */
   161      */
   160     public static void runModuleWithCp(String cp, String mp, String mn,
   162     public static void runModuleWithCp(String cp, String mp, String mn,
   161             List<String> localeList, boolean expected) throws Throwable {
   163             List<String> localeList, boolean expected) throws Throwable {
   162         JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java");
   164         JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java");
   163         launcher.addToolArg("-cp")
   165         launcher.addToolArg("-ea")
       
   166                 .addToolArg("-esa")
       
   167                 .addToolArg("-cp")
   164                 .addToolArg(cp)
   168                 .addToolArg(cp)
   165                 .addToolArg("-p")
   169                 .addToolArg("-p")
   166                 .addToolArg(mp)
   170                 .addToolArg(mp)
   167                 .addToolArg("-m")
   171                 .addToolArg("-m")
   168                 .addToolArg(mn);
   172                 .addToolArg(mn);