@Test @UseDataProvider("provideInvalidCli") public void invalidCli(final String name, final String[] args, final Class<Exception> expectedException) { this.thrown.expect(expectedException); final GetOpt getopt = new GetOpt(); Application.cli(name, getopt, args); }
public static Cli cli(final String name, final GetOpt getopt, final String[] args) { return new Cli(name, getopt, args); }
Application { public static Cli cli(final String name, final GetOpt getopt, final String[] args) { return new Cli(name, getopt, args); } }
Application { public static Cli cli(final String name, final GetOpt getopt, final String[] args) { return new Cli(name, getopt, args); } private  Application(); }
Application { public static Cli cli(final String name, final GetOpt getopt, final String[] args) { return new Cli(name, getopt, args); } private  Application(); static Cli cli(final String name, final GetOpt getopt, final String[] args); static URI getResource(final String resourceName); static T fromJson(final File json, final Class<T> cls, final Gson gson); static void exit(final int exitCode); }
Application { public static Cli cli(final String name, final GetOpt getopt, final String[] args) { return new Cli(name, getopt, args); } private  Application(); static Cli cli(final String name, final GetOpt getopt, final String[] args); static URI getResource(final String resourceName); static T fromJson(final File json, final Class<T> cls, final Gson gson); static void exit(final int exitCode); static final int TEST_SUCCESS; static final int TEST_ERROR; static final int TEST_CONFIG_ERROR; static final int TEST_SHUTDOWN_ERROR; static final String TEST_SUCCESS_MSG; }