< prev index next >

test/jdk/tools/launcher/HelpFlagsTest.java

Print this page
rev 48657 : 8195824: tools/launcher/HelpFlagsTest.java fails with java.lang.AssertionError


  58         "jaccesswalker",    // gui, don't test, win only
  59         "jconsole",         // gui, don't test
  60         "servertool",       // none. Shell, don't test.
  61         "javaw",            // don't test, win only
  62         // The flags of these tools need to be fixed in Java EE.
  63         // The tools are deprecated for removal in Java SE. Don't test.
  64         "idlj",
  65         "orbd",
  66         "schemagen",
  67         "tnameserv",
  68         "wsgen",
  69         "wsimport",
  70         "xjc",
  71         // These shall have a help message that resembles that of
  72         // MIT's tools. Thus -?, -h and --help are supported, but not
  73         // mentioned in the help text.
  74         "kinit",
  75         "klist",
  76         "ktab",
  77         // Oracle proprietary tools without help message.

  78         "jmc",
  79         "jweblauncher",
  80         "jcontrol",
  81         "ssvagent"
  82     };
  83 
  84     // Lists which tools support which flags.
  85     private static class ToolHelpSpec {
  86         String toolname;
  87 
  88         // How the flags supposed to be supported are handled.
  89         //
  90         // These flags are supported, i.e.,
  91         // * the tool accepts the flag
  92         // * the tool prints a help message if the flag is specified
  93         // * this help message lists the flag
  94         // * the tool exits with exit code '0'.
  95         boolean supportsQuestionMark;
  96         boolean supportsH;
  97         boolean supportsHelp;




  58         "jaccesswalker",    // gui, don't test, win only
  59         "jconsole",         // gui, don't test
  60         "servertool",       // none. Shell, don't test.
  61         "javaw",            // don't test, win only
  62         // The flags of these tools need to be fixed in Java EE.
  63         // The tools are deprecated for removal in Java SE. Don't test.
  64         "idlj",
  65         "orbd",
  66         "schemagen",
  67         "tnameserv",
  68         "wsgen",
  69         "wsimport",
  70         "xjc",
  71         // These shall have a help message that resembles that of
  72         // MIT's tools. Thus -?, -h and --help are supported, but not
  73         // mentioned in the help text.
  74         "kinit",
  75         "klist",
  76         "ktab",
  77         // Oracle proprietary tools without help message.
  78         "javacpl",
  79         "jmc",
  80         "jweblauncher",
  81         "jcontrol",
  82         "ssvagent"
  83     };
  84 
  85     // Lists which tools support which flags.
  86     private static class ToolHelpSpec {
  87         String toolname;
  88 
  89         // How the flags supposed to be supported are handled.
  90         //
  91         // These flags are supported, i.e.,
  92         // * the tool accepts the flag
  93         // * the tool prints a help message if the flag is specified
  94         // * this help message lists the flag
  95         // * the tool exits with exit code '0'.
  96         boolean supportsQuestionMark;
  97         boolean supportsH;
  98         boolean supportsHelp;


< prev index next >