< prev index next >

functional/appBundlerTestsJDK9/appBundlerTestsJDK9/test/com/oracle/appbundlers/tests/functionality/jdk9test/NamedModuleBundledWithMinimumModulesAnd3rdPartyJarsTest.java

Print this page




  22  * @author Ramesh BG Example 8 in chris list -srcfiles 3rd.party.jar -appClass
  23  *         HelloWorld -BmainJar=hello.world.jar -addmods hello.world Need to
  24  *         check this test case it is failing
  25  */
  26 public class NamedModuleBundledWithMinimumModulesAnd3rdPartyJarsTest
  27         extends ModuleTestBase {
  28 
  29     public VerifiedOptions getVerifiedOptions() {
  30         return () -> {
  31             Map<String, Object> hashMap = new HashMap<String, Object>();
  32             hashMap.put(OUTPUT_CONTAINS, HELLO_WORLD_OUTPUT);
  33             hashMap.put(CHECK_MODULE_IN_JAVA_EXECUTABLE,
  34                     COM_GREETINGS_MODULE_CUM_PACKAGE_NAME);
  35             return hashMap;
  36         };
  37     }
  38 
  39     public AdditionalParams getAdditionalParams() {
  40         return () -> {
  41             Map<String, Object> hashMap = new HashMap<String, Object>();
  42             hashMap.put(ADD_MODS, getApp().getAllModuleNamesSeparatedByPathSeparator());
  43             return hashMap;
  44         };
  45     }
  46 
  47     protected AppWrapper getApp() throws IOException {
  48         return new AppWrapper(Utils.getTempSubDir(WORK_DIRECTORY),
  49                 COM_GREETINGS_APP1_QUALIFIED_CLASS_NAME,
  50                 SourceFactory.get_test_app_util_unnamed_module(), SourceFactory
  51                         .get_com_greetings_module());
  52     }
  53 
  54     @Override
  55     public void overrideParameters(ExtensionType intermediate)
  56             throws IOException {
  57         if (ExtensionType.NormalJar != intermediate) {
  58             this.currentParameter.setApp(getApp());
  59             this.currentParameter.setAdditionalParams(getAdditionalParams());
  60             this.currentParameter.setVerifiedOptions(getVerifiedOptions());
  61         }
  62     }


  22  * @author Ramesh BG Example 8 in chris list -srcfiles 3rd.party.jar -appClass
  23  *         HelloWorld -BmainJar=hello.world.jar -addmods hello.world Need to
  24  *         check this test case it is failing
  25  */
  26 public class NamedModuleBundledWithMinimumModulesAnd3rdPartyJarsTest
  27         extends ModuleTestBase {
  28 
  29     public VerifiedOptions getVerifiedOptions() {
  30         return () -> {
  31             Map<String, Object> hashMap = new HashMap<String, Object>();
  32             hashMap.put(OUTPUT_CONTAINS, HELLO_WORLD_OUTPUT);
  33             hashMap.put(CHECK_MODULE_IN_JAVA_EXECUTABLE,
  34                     COM_GREETINGS_MODULE_CUM_PACKAGE_NAME);
  35             return hashMap;
  36         };
  37     }
  38 
  39     public AdditionalParams getAdditionalParams() {
  40         return () -> {
  41             Map<String, Object> hashMap = new HashMap<String, Object>();
  42             hashMap.put(ADD_MODS, getApp().addAllModules());
  43             return hashMap;
  44         };
  45     }
  46 
  47     protected AppWrapper getApp() throws IOException {
  48         return new AppWrapper(Utils.getTempSubDir(WORK_DIRECTORY),
  49                 COM_GREETINGS_APP1_QUALIFIED_CLASS_NAME,
  50                 SourceFactory.get_test_app_util_unnamed_module(), SourceFactory
  51                         .get_com_greetings_module());
  52     }
  53 
  54     @Override
  55     public void overrideParameters(ExtensionType intermediate)
  56             throws IOException {
  57         if (ExtensionType.NormalJar != intermediate) {
  58             this.currentParameter.setApp(getApp());
  59             this.currentParameter.setAdditionalParams(getAdditionalParams());
  60             this.currentParameter.setVerifiedOptions(getVerifiedOptions());
  61         }
  62     }
< prev index next >