@Test public void testUsage() { HintCommand command = new HintCommand(new Shell()); Usage usage = command.usage(); assertThat(usage.synopsis(), is("hint")); assertThat(usage.options().size(), is(0)); }
@Override public Usage usage() { return new Usage("hint"); }
HintCommand implements Command { @Override public Usage usage() { return new Usage("hint"); } }
HintCommand implements Command { @Override public Usage usage() { return new Usage("hint"); } HintCommand(Shell shell); }
HintCommand implements Command { @Override public Usage usage() { return new Usage("hint"); } HintCommand(Shell shell); @Override String name(); @Override Usage usage(); @Override void run(Line line); }
HintCommand implements Command { @Override public Usage usage() { return new Usage("hint"); } HintCommand(Shell shell); @Override String name(); @Override Usage usage(); @Override void run(Line line);  }