test/jdk/tools/jpackage/createappimage/JPackageCreateAppImageIconTest.java
branchJDK-8200758-branch
changeset 57445 405ddd80496e
parent 57414 6eda749d3117
equal deleted inserted replaced
57444:91e9d4691e5e 57445:405ddd80496e
    35  */
    35  */
    36 public class JPackageCreateAppImageIconTest {
    36 public class JPackageCreateAppImageIconTest {
    37     private static final String OUTPUT = "output";
    37     private static final String OUTPUT = "output";
    38     private static final String app = JPackagePath.getApp();
    38     private static final String app = JPackagePath.getApp();
    39     private static final String appOutput = JPackagePath.getAppOutputFile();
    39     private static final String appOutput = JPackagePath.getAppOutputFile();
    40     private static final String appWorkingDir = JPackagePath.getAppWorkingDir();
       
    41 
    40 
    42     private static final String[] CMD = {
    41     private static final String[] CMD = {
    43         "--input", "input",
    42         "--input", "input",
    44         "--name", "test",
    43         "--name", "test",
    45         "--main-jar", "hello.jar",
    44         "--main-jar", "hello.jar",
    67         if (retVal != 0) {
    66         if (retVal != 0) {
    68             throw new AssertionError(
    67             throw new AssertionError(
    69                    "Test application exited with error: " + retVal);
    68                    "Test application exited with error: " + retVal);
    70         }
    69         }
    71 
    70 
    72         File outfile = new File(appWorkingDir + File.separator + appOutput);
    71         File outfile = new File(appOutput);
    73         if (!outfile.exists()) {
    72         if (!outfile.exists()) {
    74             throw new AssertionError(appOutput + " was not created");
    73             throw new AssertionError(appOutput + " was not created");
    75         }
    74         }
    76 
    75 
    77         String output = Files.readString(outfile.toPath());
    76         String output = Files.readString(outfile.toPath());