@Test public void exec_wo_arguments() throws Exception { int status = GenerateCreateTable.execute(); assertThat(status, is(not(0))); }
static int execute(String... args) { GenerateCreateTableTask task = new GenerateCreateTableTask(); GenerateCreateTableTask.Configuration conf; try { conf = parseConfiguration(args); } catch (Exception e) { LOG.error(Messages.getString("GenerateCreateTable.errorInvalidArgument"), e); HelpFormatter formatter = new HelpFormatter(); formatter.setWidth(Integer.MAX_VALUE); formatter.printHelp( MessageFormat.format( "java -classpath ... {0}", GenerateCreateTable.class.getName()), OPTIONS, true); return 1; } try { task.perform(conf); } catch (Exception e) { LOG.error(Messages.getString("GenerateCreateTable.errorExecute"), e); return 1; } finally { closeQuiet(conf.classLoader); } return 0; }
GenerateCreateTable { static int execute(String... args) { GenerateCreateTableTask task = new GenerateCreateTableTask(); GenerateCreateTableTask.Configuration conf; try { conf = parseConfiguration(args); } catch (Exception e) { LOG.error(Messages.getString("GenerateCreateTable.errorInvalidArgument"), e); HelpFormatter formatter = new HelpFormatter(); formatter.setWidth(Integer.MAX_VALUE); formatter.printHelp( MessageFormat.format( "java -classpath ... {0}", GenerateCreateTable.class.getName()), OPTIONS, true); return 1; } try { task.perform(conf); } catch (Exception e) { LOG.error(Messages.getString("GenerateCreateTable.errorExecute"), e); return 1; } finally { closeQuiet(conf.classLoader); } return 0; } }
GenerateCreateTable { static int execute(String... args) { GenerateCreateTableTask task = new GenerateCreateTableTask(); GenerateCreateTableTask.Configuration conf; try { conf = parseConfiguration(args); } catch (Exception e) { LOG.error(Messages.getString("GenerateCreateTable.errorInvalidArgument"), e); HelpFormatter formatter = new HelpFormatter(); formatter.setWidth(Integer.MAX_VALUE); formatter.printHelp( MessageFormat.format( "java -classpath ... {0}", GenerateCreateTable.class.getName()), OPTIONS, true); return 1; } try { task.perform(conf); } catch (Exception e) { LOG.error(Messages.getString("GenerateCreateTable.errorExecute"), e); return 1; } finally { closeQuiet(conf.classLoader); } return 0; } private  GenerateCreateTable(); }
GenerateCreateTable { static int execute(String... args) { GenerateCreateTableTask task = new GenerateCreateTableTask(); GenerateCreateTableTask.Configuration conf; try { conf = parseConfiguration(args); } catch (Exception e) { LOG.error(Messages.getString("GenerateCreateTable.errorInvalidArgument"), e); HelpFormatter formatter = new HelpFormatter(); formatter.setWidth(Integer.MAX_VALUE); formatter.printHelp( MessageFormat.format( "java -classpath ... {0}", GenerateCreateTable.class.getName()), OPTIONS, true); return 1; } try { task.perform(conf); } catch (Exception e) { LOG.error(Messages.getString("GenerateCreateTable.errorExecute"), e); return 1; } finally { closeQuiet(conf.classLoader); } return 0; } private  GenerateCreateTable(); static void main(String[] args); }
GenerateCreateTable { static int execute(String... args) { GenerateCreateTableTask task = new GenerateCreateTableTask(); GenerateCreateTableTask.Configuration conf; try { conf = parseConfiguration(args); } catch (Exception e) { LOG.error(Messages.getString("GenerateCreateTable.errorInvalidArgument"), e); HelpFormatter formatter = new HelpFormatter(); formatter.setWidth(Integer.MAX_VALUE); formatter.printHelp( MessageFormat.format( "java -classpath ... {0}", GenerateCreateTable.class.getName()), OPTIONS, true); return 1; } try { task.perform(conf); } catch (Exception e) { LOG.error(Messages.getString("GenerateCreateTable.errorExecute"), e); return 1; } finally { closeQuiet(conf.classLoader); } return 0; } private  GenerateCreateTable(); static void main(String[] args);  }