@Test public void generatesKeysWithoutDisplayConfirmation() { final DepositGenerateCommand depositGenerateCommand = new DepositGenerateCommand(shutdownFunction, generateParams, new VerboseOutputParam(false)); depositGenerateCommand.run(); verify(generateParams).createGenerateAction(false); verify(generateAction).generateKeys(); }
@Override public void run() { final GenerateAction generateAction = generateParams.createGenerateAction(verboseOutputParam.isVerboseOutputEnabled()); generateAction.generateKeys(); shutdownFunction.accept(0); }
DepositGenerateCommand implements Runnable { @Override public void run() { final GenerateAction generateAction = generateParams.createGenerateAction(verboseOutputParam.isVerboseOutputEnabled()); generateAction.generateKeys(); shutdownFunction.accept(0); } }
DepositGenerateCommand implements Runnable { @Override public void run() { final GenerateAction generateAction = generateParams.createGenerateAction(verboseOutputParam.isVerboseOutputEnabled()); generateAction.generateKeys(); shutdownFunction.accept(0); } DepositGenerateCommand(); @VisibleForTesting  DepositGenerateCommand(
      final Consumer<Integer> shutdownFunction,
      final GenerateParams generateParams,
      final VerboseOutputParam verboseOutputParam); }
DepositGenerateCommand implements Runnable { @Override public void run() { final GenerateAction generateAction = generateParams.createGenerateAction(verboseOutputParam.isVerboseOutputEnabled()); generateAction.generateKeys(); shutdownFunction.accept(0); } DepositGenerateCommand(); @VisibleForTesting  DepositGenerateCommand(
      final Consumer<Integer> shutdownFunction,
      final GenerateParams generateParams,
      final VerboseOutputParam verboseOutputParam); @Override void run(); }
DepositGenerateCommand implements Runnable { @Override public void run() { final GenerateAction generateAction = generateParams.createGenerateAction(verboseOutputParam.isVerboseOutputEnabled()); generateAction.generateKeys(); shutdownFunction.accept(0); } DepositGenerateCommand(); @VisibleForTesting  DepositGenerateCommand(
      final Consumer<Integer> shutdownFunction,
      final GenerateParams generateParams,
      final VerboseOutputParam verboseOutputParam); @Override void run();  }