@Test public void main0() throws Exception { assertEquals("exit code", 1, new NonSleepingHarReplayMain().main0(new String[]{})); }
int main0(String[] args) throws IOException { try { OptionSet optionSet = parser.parse(args); if (optionSet.has(OPT_HELP)) { parser.printHelpOn(System.out); return 0; } if (optionSet.has(OPT_VERSION)) { printVersion(System.out); return 0; } operate(optionSet); } catch (UsageException | joptsimple.OptionException e) { System.err.format("har-replay: %s%n", e.getMessage()); System.err.format("har-replay: use --help to print options%n"); return 1; } return 0; }
HarReplayMain { int main0(String[] args) throws IOException { try { OptionSet optionSet = parser.parse(args); if (optionSet.has(OPT_HELP)) { parser.printHelpOn(System.out); return 0; } if (optionSet.has(OPT_VERSION)) { printVersion(System.out); return 0; } operate(optionSet); } catch (UsageException | joptsimple.OptionException e) { System.err.format("har-replay: %s%n", e.getMessage()); System.err.format("har-replay: use --help to print options%n"); return 1; } return 0; } }
HarReplayMain { int main0(String[] args) throws IOException { try { OptionSet optionSet = parser.parse(args); if (optionSet.has(OPT_HELP)) { parser.printHelpOn(System.out); return 0; } if (optionSet.has(OPT_VERSION)) { printVersion(System.out); return 0; } operate(optionSet); } catch (UsageException | joptsimple.OptionException e) { System.err.format("har-replay: %s%n", e.getMessage()); System.err.format("har-replay: use --help to print options%n"); return 1; } return 0; } HarReplayMain(); @VisibleForTesting  HarReplayMain(OptionParser parser); }
HarReplayMain { int main0(String[] args) throws IOException { try { OptionSet optionSet = parser.parse(args); if (optionSet.has(OPT_HELP)) { parser.printHelpOn(System.out); return 0; } if (optionSet.has(OPT_VERSION)) { printVersion(System.out); return 0; } operate(optionSet); } catch (UsageException | joptsimple.OptionException e) { System.err.format("har-replay: %s%n", e.getMessage()); System.err.format("har-replay: use --help to print options%n"); return 1; } return 0; } HarReplayMain(); @VisibleForTesting  HarReplayMain(OptionParser parser); static void main(String[] args); }
HarReplayMain { int main0(String[] args) throws IOException { try { OptionSet optionSet = parser.parse(args); if (optionSet.has(OPT_HELP)) { parser.printHelpOn(System.out); return 0; } if (optionSet.has(OPT_VERSION)) { printVersion(System.out); return 0; } operate(optionSet); } catch (UsageException | joptsimple.OptionException e) { System.err.format("har-replay: %s%n", e.getMessage()); System.err.format("har-replay: use --help to print options%n"); return 1; } return 0; } HarReplayMain(); @VisibleForTesting  HarReplayMain(OptionParser parser); static void main(String[] args);  }