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