test/jdk/tools/jpackage/JPackageHelpTest.java
branchJDK-8200758-branch
changeset 57258 ea75e8d7e34f
parent 57106 ea870b9ce89a
equal deleted inserted replaced
57257:69ad9df313e4 57258:ea75e8d7e34f
    32  */
    32  */
    33 public class JPackageHelpTest {
    33 public class JPackageHelpTest {
    34 
    34 
    35     // Platform specific help messages.
    35     // Platform specific help messages.
    36     private static final String WINDOWS_HELP =
    36     private static final String WINDOWS_HELP =
    37             "The following options are valid for Windows platforms";
    37             "--win-dir-chooser";
    38     private static final String OSX_HELP =
    38     private static final String OSX_HELP =
    39             "The following options are valid for Mac OS X platforms";
    39             "--mac-bundle-identifier";
    40     private static final String LINUX_HELP =
    40     private static final String LINUX_HELP =
    41             "The following options are valid for Linux platforms";
    41             "--linux-bundle-name";
    42 
    42 
    43     private static void validate(String output1, String output2)
    43     private static void validate(String output1, String output2)
    44             throws Exception {
    44             throws Exception {
    45         if (output1.split("\n").length < 25) {
    45         if (output1.split("\n").length < 25) {
    46             throw new AssertionError("jpacakger --help failed");
    46             throw new AssertionError("jpacakger --help failed");