< prev index next >

test/jdk/tools/jpackage/createimage/JPackageCreateImageVerboseTest.java

Print this page

        

*** 29,58 **** * @build JPackagePath * @modules jdk.jpackage * @run main/othervm -Xmx512m JPackageCreateImageVerboseTest */ public class JPackageCreateImageVerboseTest { ! private static final String[] CMD = { "create-image", "--input", "input", ! "--output", "output", "--name", "test", "--main-jar", "hello.jar", "--main-class", "Hello", - "--overwrite", "--files", "hello.jar"}; private static final String[] CMD_VERBOSE = { "create-image", "--input", "input", ! "--output", "output", "--name", "test", "--main-jar", "hello.jar", "--main-class", "Hello", "--files", "hello.jar", - "--overwrite", "--verbose"}; private static void validate(String result, String resultVerbose) throws Exception { String[] r = result.split("\n"); --- 29,56 ---- * @build JPackagePath * @modules jdk.jpackage * @run main/othervm -Xmx512m JPackageCreateImageVerboseTest */ public class JPackageCreateImageVerboseTest { ! private static final String OUTPUT = "output"; private static final String[] CMD = { "create-image", "--input", "input", ! "--output", OUTPUT, "--name", "test", "--main-jar", "hello.jar", "--main-class", "Hello", "--files", "hello.jar"}; private static final String[] CMD_VERBOSE = { "create-image", "--input", "input", ! "--output", OUTPUT, "--name", "test", "--main-jar", "hello.jar", "--main-class", "Hello", "--files", "hello.jar", "--verbose"}; private static void validate(String result, String resultVerbose) throws Exception { String[] r = result.split("\n");
*** 68,83 **** --- 66,84 ---- } } private static void testCreateImage() throws Exception { String result = JPackageHelper.executeCLI(true, CMD); + JPackageHelper.deleteOutputFolder(OUTPUT); String resultVerbose = JPackageHelper.executeCLI(true, CMD_VERBOSE); validate(result, resultVerbose); } private static void testCreateImageToolProvider() throws Exception { + JPackageHelper.deleteOutputFolder(OUTPUT); String result = JPackageHelper.executeToolProvider(true, CMD); + JPackageHelper.deleteOutputFolder(OUTPUT); String resultVerbose = JPackageHelper.executeToolProvider(true, CMD_VERBOSE); validate(result, resultVerbose); }
< prev index next >