@Test public void testWorking() throws ParseException { when(parser.parse(any(String.class))).thenReturn(options); ToolOptions actualOptions = EcLog.getToolOptions(new String[]{ "some/path" }, parser, exiter); assertThat(actualOptions).isEqualTo(options); }
private static ToolOptions getToolOptions(String... argv) { return getToolOptions(argv, new OptionParser(), System::exit); }
EcLog { private static ToolOptions getToolOptions(String... argv) { return getToolOptions(argv, new OptionParser(), System::exit); } }
EcLog { private static ToolOptions getToolOptions(String... argv) { return getToolOptions(argv, new OptionParser(), System::exit); } private  EcLog(); }
EcLog { private static ToolOptions getToolOptions(String... argv) { return getToolOptions(argv, new OptionParser(), System::exit); } private  EcLog(); static void main(String[] argv); }
EcLog { private static ToolOptions getToolOptions(String... argv) { return getToolOptions(argv, new OptionParser(), System::exit); } private  EcLog(); static void main(String[] argv);  }