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