test/jdk/tools/jpackage/createappimage/macosx/JPackageCreateAppImageBundleIdentifierTest.java
equal
deleted
inserted
replaced
42 */ |
42 */ |
43 public class JPackageCreateAppImageBundleIdentifierTest { |
43 public class JPackageCreateAppImageBundleIdentifierTest { |
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_IDENTIFIER = "TestBundleIdentifier"; |
47 private static final String MAC_BUNDLE_IDENTIFIER = "TestBundleIdentifier"; |
49 private static final String APP_NAME = "test"; |
48 private static final String APP_NAME = "test"; |
50 private static final String MAIN_CLASS = "Hello"; |
49 private static final String MAIN_CLASS = "Hello"; |
51 |
50 |
52 private static final String [] CMD_1 = { |
51 private static final String [] CMD_1 = { |
86 if (retVal != 0) { |
85 if (retVal != 0) { |
87 throw new AssertionError( |
86 throw new AssertionError( |
88 "Test application exited with error: " + retVal); |
87 "Test application exited with error: " + retVal); |
89 } |
88 } |
90 |
89 |
91 File outfile = new File(appWorkingDir + File.separator + appOutput); |
90 File outfile = new File(appOutput); |
92 if (!outfile.exists()) { |
91 if (!outfile.exists()) { |
93 throw new AssertionError(appOutput + " was not created"); |
92 throw new AssertionError(appOutput + " was not created"); |
94 } |
93 } |
95 |
94 |
96 String output = Files.readString(outfile.toPath()); |
95 String output = Files.readString(outfile.toPath()); |