@Test public void printUsage() throws CommandException { String usage = cmd.getUsage(); assertEquals(usage, "database"); }
@Nonnull @Override public String getUsage() { return "database"; }
Use implements Command { @Nonnull @Override public String getUsage() { return "database"; } }
Use implements Command { @Nonnull @Override public String getUsage() { return "database"; } Use(@Nonnull final DatabaseManager databaseManager); }
Use implements Command { @Nonnull @Override public String getUsage() { return "database"; } Use(@Nonnull final DatabaseManager databaseManager); @Nonnull @Override String getName(); @Nonnull @Override String getDescription(); @Nonnull @Override String getUsage(); @Nonnull @Override String getHelp(); @Nonnull @Override List<String> getAliases(); @Override void execute(@Nonnull final String argString); }
Use implements Command { @Nonnull @Override public String getUsage() { return "database"; } Use(@Nonnull final DatabaseManager databaseManager); @Nonnull @Override String getName(); @Nonnull @Override String getDescription(); @Nonnull @Override String getUsage(); @Nonnull @Override String getHelp(); @Nonnull @Override List<String> getAliases(); @Override void execute(@Nonnull final String argString);  }