@Test public void body_w_error() { Bootstrap.register(new Callback() { @Override public int run(String[] args) throws Exception { throw new IOException(); } }); int status = ApplicationLauncher.exec(conf, new String[] { Bootstrap.class.getName(), }); assertThat(status, is(ApplicationLauncher.CLIENT_ERROR)); }
public static int exec(String... args) { return exec(new Configuration(), args); }
ApplicationLauncher { public static int exec(String... args) { return exec(new Configuration(), args); } }
ApplicationLauncher { public static int exec(String... args) { return exec(new Configuration(), args); } private  ApplicationLauncher(); }
ApplicationLauncher { public static int exec(String... args) { return exec(new Configuration(), args); } private  ApplicationLauncher(); static void main(String... args); static int exec(String... args); static int exec(Configuration configuration, String... args); static ClassLoader switchContextClassLoader(ClassLoader classLoader); static void disposeClassLoader(ClassLoader classLoader); }
ApplicationLauncher { public static int exec(String... args) { return exec(new Configuration(), args); } private  ApplicationLauncher(); static void main(String... args); static int exec(String... args); static int exec(Configuration configuration, String... args); static ClassLoader switchContextClassLoader(ClassLoader classLoader); static void disposeClassLoader(ClassLoader classLoader); static final String KEY_LAUNCHER_USED; static final int LAUNCH_ERROR; static final int CLIENT_ERROR; }