test/jdk/tools/jpackage/createappimage/macosx/JPackageCreateAppImageBundleNameTest.java
equal
deleted
inserted
replaced
42 */ |
42 */ |
43 public class JPackageCreateAppImageBundleNameTest { |
43 public class JPackageCreateAppImageBundleNameTest { |
44 private static final String OUTPUT = "output"; |
44 private static final String OUTPUT = "output"; |
45 private static final String app = JPackagePath.getApp(); |
45 private static final String app = JPackagePath.getApp(); |
46 private static final String appOutput = JPackagePath.getAppOutputFile(); |
46 private static final String appOutput = JPackagePath.getAppOutputFile(); |
47 private static final String appWorkingDir = JPackagePath.getAppWorkingDir(); |
|
48 private static final String MAC_BUNDLE_NAME = "TestBundleName"; |
47 private static final String MAC_BUNDLE_NAME = "TestBundleName"; |
49 private static final String APP_NAME = "test"; |
48 private static final String APP_NAME = "test"; |
50 |
49 |
51 private static final String [] CMD_1 = { |
50 private static final String [] CMD_1 = { |
52 "--input", "input", |
51 "--input", "input", |
85 if (retVal != 0) { |
84 if (retVal != 0) { |
86 throw new AssertionError( |
85 throw new AssertionError( |
87 "Test application exited with error: " + retVal); |
86 "Test application exited with error: " + retVal); |
88 } |
87 } |
89 |
88 |
90 File outfile = new File(appWorkingDir + File.separator + appOutput); |
89 File outfile = new File(appOutput); |
91 if (!outfile.exists()) { |
90 if (!outfile.exists()) { |
92 throw new AssertionError(appOutput + " was not created"); |
91 throw new AssertionError(appOutput + " was not created"); |
93 } |
92 } |
94 |
93 |
95 String output = Files.readString(outfile.toPath()); |
94 String output = Files.readString(outfile.toPath()); |