@Test public void testUsage() { DeployCommand command = new DeployCommand(new Shell(), new HashMap<>(), Paths.get("/path/to/not-found.yml")); Usage usage = command.usage(); assertThat(usage.synopsis(), is("deploy <profile> ('deploy core' is not allowed)")); assertThat(usage.options().size(), is(0)); }
@Override public Usage usage() { return new Usage("deploy <profile> ('deploy core' is not allowed)"); }
DeployCommand implements Command { @Override public Usage usage() { return new Usage("deploy <profile> ('deploy core' is not allowed)"); } }
DeployCommand implements Command { @Override public Usage usage() { return new Usage("deploy <profile> ('deploy core' is not allowed)"); } DeployCommand(Shell shell, Map<String, Object> configuration, Path path); }
DeployCommand implements Command { @Override public Usage usage() { return new Usage("deploy <profile> ('deploy core' is not allowed)"); } DeployCommand(Shell shell, Map<String, Object> configuration, Path path); @Override String name(); @Override Usage usage(); @Override void run(Line line); void cloudFormation(AmazonCloudFormation cloudFormation); void s3(AmazonS3 s3); }
DeployCommand implements Command { @Override public Usage usage() { return new Usage("deploy <profile> ('deploy core' is not allowed)"); } DeployCommand(Shell shell, Map<String, Object> configuration, Path path); @Override String name(); @Override Usage usage(); @Override void run(Line line); void cloudFormation(AmazonCloudFormation cloudFormation); void s3(AmazonS3 s3);  }