@Test public void parsingCLI() throws ParseException { String[] args; CommandLine cl; args = new String[] { C, "conn.xml", D, "data.xml", L, "load.csv" }; cl = AppMain.parsingCLI(args); assertThat(cl.getOptionValue(AppMain.OPT_XDL_CONN), is("conn.xml")); assertThat(cl.getOptionValue(AppMain.OPT_XDL_DATA), is("data.xml")); assertThat(cl.getOptionValue(AppMain.OPT_XDL_LOAD), is("load.csv")); args = new String[] { C, "conn.xml", D, "data.xml", L, "load.xml" }; cl = AppMain.parsingCLI(args); assertThat(cl.getOptionValue(AppMain.OPT_XDL_CONN), is("conn.xml")); assertThat(cl.getOptionValue(AppMain.OPT_XDL_DATA), is("data.xml")); assertThat(cl.getOptionValue(AppMain.OPT_XDL_LOAD), is("load.xml")); }
public static CommandLine parsingCLI(String[] arguments) throws ParseException { Options options = getOprions(); PosixParser posix = new PosixParser(); return posix.parse(options, arguments); }
AppMain { public static CommandLine parsingCLI(String[] arguments) throws ParseException { Options options = getOprions(); PosixParser posix = new PosixParser(); return posix.parse(options, arguments); } }
AppMain { public static CommandLine parsingCLI(String[] arguments) throws ParseException { Options options = getOprions(); PosixParser posix = new PosixParser(); return posix.parse(options, arguments); } private  AppMain(); }
AppMain { public static CommandLine parsingCLI(String[] arguments) throws ParseException { Options options = getOprions(); PosixParser posix = new PosixParser(); return posix.parse(options, arguments); } private  AppMain(); static Options getOprions(); static CommandLine parsingCLI(String[] arguments); static void main(String[] args); }
AppMain { public static CommandLine parsingCLI(String[] arguments) throws ParseException { Options options = getOprions(); PosixParser posix = new PosixParser(); return posix.parse(options, arguments); } private  AppMain(); static Options getOprions(); static CommandLine parsingCLI(String[] arguments); static void main(String[] args); static final String OPT_XDL_CONN; static final String OPT_XDL_DATA; static final String OPT_XDL_LOAD; }