@Test public void testUsage() { PushCommand command = new PushCommand(new Shell(), new HashMap<>()); Usage usage = command.usage(); assertThat(usage.synopsis(), is("push <fault-jar>")); assertThat(usage.options().size(), is(0)); }
@Override public Usage usage() { return new Usage("push <fault-jar>"); }
PushCommand implements Command { @Override public Usage usage() { return new Usage("push <fault-jar>"); } }
PushCommand implements Command { @Override public Usage usage() { return new Usage("push <fault-jar>"); } PushCommand(Shell shell, Map<String, Object> configuration); }
PushCommand implements Command { @Override public Usage usage() { return new Usage("push <fault-jar>"); } PushCommand(Shell shell, Map<String, Object> configuration); @Override String name(); @Override Usage usage(); @Override @SuppressWarnings("unchecked") void run(Line line); void httpClient(CloseableHttpClient httpClient); }
PushCommand implements Command { @Override public Usage usage() { return new Usage("push <fault-jar>"); } PushCommand(Shell shell, Map<String, Object> configuration); @Override String name(); @Override Usage usage(); @Override @SuppressWarnings("unchecked") void run(Line line); void httpClient(CloseableHttpClient httpClient);  }