@Test public void testParser() throws Exception { String[] args = new String[] { AppParameters.Keys.OKHTTP_CLIENT.parameter() }; AppParameters parameters = AppParameters.parser(args); assertTrue(parameters.isOkHttpClient()); args = new String[] { AppParameters.Keys.CONFIG_PATH.parameter(), "test" }; parameters = AppParameters.parser(args); assertEquals("test", parameters.getConfigPath()); args = new String[] { AppParameters.Keys.AUTO_TCP_CLIENT.parameter() }; parameters = AppParameters.parser(args); assertTrue(parameters.isAutoTcpClient()); args = new String[] { AppParameters.Keys.HELP.parameter(), }; parameters = AppParameters.parser(args); assertTrue(parameters.isHelp()); }
public static AppParameters parser(String[] args) throws CmdLineException { AppParameters applicationArgs = new AppParameters(); CmdLineParser parser = new CmdLineParser(applicationArgs); parser.parseArgument(args); return applicationArgs; }
AppParameters { public static AppParameters parser(String[] args) throws CmdLineException { AppParameters applicationArgs = new AppParameters(); CmdLineParser parser = new CmdLineParser(applicationArgs); parser.parseArgument(args); return applicationArgs; } }
AppParameters { public static AppParameters parser(String[] args) throws CmdLineException { AppParameters applicationArgs = new AppParameters(); CmdLineParser parser = new CmdLineParser(applicationArgs); parser.parseArgument(args); return applicationArgs; } private  AppParameters(); }
AppParameters { public static AppParameters parser(String[] args) throws CmdLineException { AppParameters applicationArgs = new AppParameters(); CmdLineParser parser = new CmdLineParser(applicationArgs); parser.parseArgument(args); return applicationArgs; } private  AppParameters(); static Builder newBuilder(); static AppParameters parser(String[] args); static void getHelp(OutputStream out); String getConfigPath(); boolean isAutoTcpClient(); boolean isOkHttpClient(); boolean isHelp(); }
AppParameters { public static AppParameters parser(String[] args) throws CmdLineException { AppParameters applicationArgs = new AppParameters(); CmdLineParser parser = new CmdLineParser(applicationArgs); parser.parseArgument(args); return applicationArgs; } private  AppParameters(); static Builder newBuilder(); static AppParameters parser(String[] args); static void getHelp(OutputStream out); String getConfigPath(); boolean isAutoTcpClient(); boolean isOkHttpClient(); boolean isHelp();  }