@Test public void commitTransactionOnShell() throws CommandException { commitCommand.execute(""); verify(mockShell).commitTransaction(); }
@Override public void execute(@Nonnull final String argString) throws ExitException, CommandException { simpleArgParse(argString, 0, COMMAND_NAME, getUsage()); transactionHandler.commitTransaction(); }
Commit implements Command { @Override public void execute(@Nonnull final String argString) throws ExitException, CommandException { simpleArgParse(argString, 0, COMMAND_NAME, getUsage()); transactionHandler.commitTransaction(); } }
Commit implements Command { @Override public void execute(@Nonnull final String argString) throws ExitException, CommandException { simpleArgParse(argString, 0, COMMAND_NAME, getUsage()); transactionHandler.commitTransaction(); } Commit(@Nonnull final TransactionHandler transactionHandler); }
Commit implements Command { @Override public void execute(@Nonnull final String argString) throws ExitException, CommandException { simpleArgParse(argString, 0, COMMAND_NAME, getUsage()); transactionHandler.commitTransaction(); } Commit(@Nonnull final TransactionHandler transactionHandler); @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); }
Commit implements Command { @Override public void execute(@Nonnull final String argString) throws ExitException, CommandException { simpleArgParse(argString, 0, COMMAND_NAME, getUsage()); transactionHandler.commitTransaction(); } Commit(@Nonnull final TransactionHandler transactionHandler); @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); static final String COMMAND_NAME; }