< prev index next >

test/jdk/tools/launcher/HelpFlagsTest.java

Print this page




  42 import java.io.File;
  43 import java.io.FileFilter;
  44 import java.util.Map;
  45 import java.util.ArrayList;
  46 import java.util.HashMap;
  47 import java.util.List;
  48 import java.util.HashSet;
  49 import java.util.Set;
  50 
  51 
  52 public class HelpFlagsTest extends TestHelper {
  53 
  54     // Tools that should not be tested because a usage message is pointless.
  55     static final String[] TOOLS_NOT_TO_TEST = {
  56         "appletviewer",     // deprecated, don't test
  57         "jaccessinspector", // gui, don't test, win only
  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         //




  42 import java.io.File;
  43 import java.io.FileFilter;
  44 import java.util.Map;
  45 import java.util.ArrayList;
  46 import java.util.HashMap;
  47 import java.util.List;
  48 import java.util.HashSet;
  49 import java.util.Set;
  50 
  51 
  52 public class HelpFlagsTest extends TestHelper {
  53 
  54     // Tools that should not be tested because a usage message is pointless.
  55     static final String[] TOOLS_NOT_TO_TEST = {
  56         "appletviewer",     // deprecated, don't test
  57         "jaccessinspector", // gui, don't test, win only
  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         // These shall have a help message that resembles that of
  63         // MIT's tools. Thus -?, -h and --help are supported, but not
  64         // mentioned in the help text.
  65         "kinit",
  66         "klist",
  67         "ktab",
  68         // Oracle proprietary tools without help message.
  69         "javacpl",
  70         "jmc",
  71         "jweblauncher",
  72         "jcontrol",
  73         "ssvagent"
  74     };
  75 
  76     // Lists which tools support which flags.
  77     private static class ToolHelpSpec {
  78         String toolname;
  79 
  80         // How the flags supposed to be supported are handled.
  81         //


< prev index next >