ReportingCollector { public static void main(String[] args) { try { new ReportingCollector(args.length > 0 ? args[0] : REPORTING_COLLECTOR_PROPERTIES).run(); } catch (IOException exception) { LOGGER.log(Level.SEVERE, "Problem when loading the configuration file.", exception); System.exit(1); } catch (JobReportsException exception) { LOGGER.log(Level.SEVERE, "Problem when accessing the report file.", exception); System.exit(1); } catch (ServerConnectionException exception) { LOGGER.log(Level.SEVERE, "Problem when connecting to history server.", exception); System.exit(1); } catch (JAXBException exception) { LOGGER.log(Level.SEVERE, "Problem when unmarshalling XML.", exception); System.exit(1); } catch (JobTransformerException exception) { LOGGER.log(Level.SEVERE, "Problem when dealing with XSL transformation.", exception); System.exit(1); } finally { jobReports.closeBufferedWriters(); } } private  ReportingCollector(String propertiesName); static void main(String[] args);  }
@Ignore @Test public void testMain() throws Exception { ReportingCollector.main(new String[]{"reporting-collector-test.properties"}); }