@Test public void configPassedToResolver() throws Exception { final Path inputFile = Paths.get(getClass().getResource("/sample-config.json").toURI()); commandLine.execute("-configfile", inputFile.toString()); final CliResult result = commandLine.getExecutionResult(); assertThat(result).isNotNull(); assertThat(result.getStatus()).isEqualTo(0); assertThat(result.isSuppressStartup()).isFalse(); assertThat(result.getConfig()).isPresent(); assertThat(MockKeyPasswordResolver.getSeen()).isNotNull(); }
@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);  }