@Test public void missingConfigurationOutputsErrorMessage() { commandLine.execute(); final CliResult result = commandLine.getExecutionResult(); final String output = systemErrOutput.getLog(); assertThat(result).isNull(); assertThat(output).contains("Missing required option '-configfile <config>'"); }
@Override public CliResult execute(String... args) throws Exception { this.pidFileMixin.call(); final Config config = configurationMixin.getConfig(); keyPasswordResolver.resolveKeyPasswords(config); return new CliResult(0, false, config); }
EnclaveCliAdapter implements CliAdapter, Callable<CliResult> { @Override public CliResult execute(String... args) throws Exception { this.pidFileMixin.call(); final Config config = configurationMixin.getConfig(); keyPasswordResolver.resolveKeyPasswords(config); return new CliResult(0, false, config); } }
EnclaveCliAdapter implements CliAdapter, Callable<CliResult> { @Override public CliResult execute(String... args) throws Exception { this.pidFileMixin.call(); final Config config = configurationMixin.getConfig(); keyPasswordResolver.resolveKeyPasswords(config); return new CliResult(0, false, config); } EnclaveCliAdapter(final KeyPasswordResolver keyPasswordResolver);  EnclaveCliAdapter(); }
EnclaveCliAdapter implements CliAdapter, Callable<CliResult> { @Override public CliResult execute(String... args) throws Exception { this.pidFileMixin.call(); final Config config = configurationMixin.getConfig(); keyPasswordResolver.resolveKeyPasswords(config); return new CliResult(0, false, config); } EnclaveCliAdapter(final KeyPasswordResolver keyPasswordResolver);  EnclaveCliAdapter(); @Override CliType getType(); @Override CliResult call(); @Override CliResult execute(String... args); }
EnclaveCliAdapter implements CliAdapter, Callable<CliResult> { @Override public CliResult execute(String... args) throws Exception { this.pidFileMixin.call(); final Config config = configurationMixin.getConfig(); keyPasswordResolver.resolveKeyPasswords(config); return new CliResult(0, false, config); } EnclaveCliAdapter(final KeyPasswordResolver keyPasswordResolver);  EnclaveCliAdapter(); @Override CliType getType(); @Override CliResult call(); @Override CliResult execute(String... args);  }