@Test(expected = RuntimeException.class) public void updateAccount_shouldThrowRuntimeExceptionForNonExistingAccount() { Account nonExistingAccount = createAccountBuilderWithBaseFields(USERNAME, PASSWORD, FIRST_NAME, LAST_NAME).build(); accountDao.updateAccount(nonExistingAccount); }
public void updateAccount(@Nonnull final Account account) { checkNotNull(account, "Argument[account] must not be null"); super.update(account); logger.info("Updated account[{}]", account); }
AccountDao extends AbstractBaseDao<Account, String> implements AccountMapper { public void updateAccount(@Nonnull final Account account) { checkNotNull(account, "Argument[account] must not be null"); super.update(account); logger.info("Updated account[{}]", account); } }
AccountDao extends AbstractBaseDao<Account, String> implements AccountMapper { public void updateAccount(@Nonnull final Account account) { checkNotNull(account, "Argument[account] must not be null"); super.update(account); logger.info("Updated account[{}]", account); } AccountDao(String collectionName); }
AccountDao extends AbstractBaseDao<Account, String> implements AccountMapper { public void updateAccount(@Nonnull final Account account) { checkNotNull(account, "Argument[account] must not be null"); super.update(account); logger.info("Updated account[{}]", account); } AccountDao(String collectionName); Account getAccountByUsername(final String username); Account getAccountByUsernameAndPassword(final String username, final String password); void insertAccount(@Nonnull final Account account); void updateAccount(@Nonnull final Account account); void deleteAccount(@Nonnull final String username); void insertProfile(final Account account); void insertSignon(final Account account); void updateProfile(final Account account); void updateSignon(final Account account); }
AccountDao extends AbstractBaseDao<Account, String> implements AccountMapper { public void updateAccount(@Nonnull final Account account) { checkNotNull(account, "Argument[account] must not be null"); super.update(account); logger.info("Updated account[{}]", account); } AccountDao(String collectionName); Account getAccountByUsername(final String username); Account getAccountByUsernameAndPassword(final String username, final String password); void insertAccount(@Nonnull final Account account); void updateAccount(@Nonnull final Account account); void deleteAccount(@Nonnull final String username); void insertProfile(final Account account); void insertSignon(final Account account); void updateProfile(final Account account); void updateSignon(final Account account);  }