test/jdk/tools/jpackage/createappimage/JPackageCreateAppImageArgumentsBase.java
branchJDK-8200758-branch
changeset 57445 405ddd80496e
parent 57307 4948a1944cf9
equal deleted inserted replaced
57444:91e9d4691e5e 57445:405ddd80496e
    28 
    28 
    29 public class JPackageCreateAppImageArgumentsBase {
    29 public class JPackageCreateAppImageArgumentsBase {
    30 
    30 
    31     private static final String app = JPackagePath.getApp();
    31     private static final String app = JPackagePath.getApp();
    32     private static final String appOutput = JPackagePath.getAppOutputFile();
    32     private static final String appOutput = JPackagePath.getAppOutputFile();
    33     private static final String appWorkingDir = JPackagePath.getAppWorkingDir();
       
    34 
    33 
    35     private static final String ARGUMENT1 = "argument";
    34     private static final String ARGUMENT1 = "argument";
    36     private static final String ARGUMENT2 = "Some Arguments";
    35     private static final String ARGUMENT2 = "Some Arguments";
    37     private static final String ARGUMENT3 = "Value \"with\" quotes";
    36     private static final String ARGUMENT3 = "Value \"with\" quotes";
    38 
    37 
    94         if (retVal != 0) {
    93         if (retVal != 0) {
    95             throw new AssertionError("Test application exited with error: "
    94             throw new AssertionError("Test application exited with error: "
    96                     + retVal);
    95                     + retVal);
    97         }
    96         }
    98 
    97 
    99         File outfile = new File(appWorkingDir + File.separator + appOutput);
    98         File outfile = new File(appOutput);
   100         if (!outfile.exists()) {
    99         if (!outfile.exists()) {
   101             throw new AssertionError(appOutput + " was not created");
   100             throw new AssertionError(appOutput + " was not created");
   102         }
   101         }
   103 
   102 
   104         String output = Files.readString(outfile.toPath());
   103         String output = Files.readString(outfile.toPath());