test/jdk/tools/jpackage/createappimage/macosx/JPackageCreateAppImageBundleIdentifierTest.java
branchJDK-8200758-branch
changeset 57445 405ddd80496e
parent 57414 6eda749d3117
equal deleted inserted replaced
57444:91e9d4691e5e 57445:405ddd80496e
    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());