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