@Test public void updateAccount_shouldUpdateExistingAccount() { existingAccount = createAccountBuilderWithBaseFields(USERNAME, PASSWORD, FIRST_NAME, LAST_NAME).build(); insertExistingAccount(); Account accountToUpdate = createAccountBuilderWithAllFields(existingAccount).build(); assertThat(accountToUpdate.getUsername(), is(existingAccount.getUsername())); persistence.updateAccount(accountToUpdate); Account updatedAccount = persistence.read(accountToUpdate.getUsername()); assertHaveSamePersistentFields(updatedAccount, accountToUpdate, "CGLIB$BOUND", "CGLIB$CALLBACK_0"); }
@Override public void updateAccount(@Nonnull final Account account) { checkNotNull(account, "Argument[account] must not be null"); update(account); }
AccountBasePersistence extends AbstractBasePersistence<Account, String> implements AccountMapper { @Override public void updateAccount(@Nonnull final Account account) { checkNotNull(account, "Argument[account] must not be null"); update(account); } }
AccountBasePersistence extends AbstractBasePersistence<Account, String> implements AccountMapper { @Override public void updateAccount(@Nonnull final Account account) { checkNotNull(account, "Argument[account] must not be null"); update(account); }  }
AccountBasePersistence extends AbstractBasePersistence<Account, String> implements AccountMapper { @Override public void updateAccount(@Nonnull final Account account) { checkNotNull(account, "Argument[account] must not be null"); update(account); }  void deleteAccount(@Nonnull final String username); Account getAccountByUsername(@Nonnull final String username); Account getAccountByUsernameAndPassword(@Nonnull final String username,
            @Nonnull final String password); Account getAccount(@Nonnull String username); @Override void insertAccount(@Nonnull final Account account); @Override void updateAccount(@Nonnull final Account account); @Override void insertProfile(@Nonnull final Account account); @Override void insertSignon(@Nonnull final Account account); @Override void updateProfile(@Nonnull final Account account); void updateSignon(@Nonnull final Account account); }
AccountBasePersistence extends AbstractBasePersistence<Account, String> implements AccountMapper { @Override public void updateAccount(@Nonnull final Account account) { checkNotNull(account, "Argument[account] must not be null"); update(account); }  void deleteAccount(@Nonnull final String username); Account getAccountByUsername(@Nonnull final String username); Account getAccountByUsernameAndPassword(@Nonnull final String username,
            @Nonnull final String password); Account getAccount(@Nonnull String username); @Override void insertAccount(@Nonnull final Account account); @Override void updateAccount(@Nonnull final Account account); @Override void insertProfile(@Nonnull final Account account); @Override void insertSignon(@Nonnull final Account account); @Override void updateProfile(@Nonnull final Account account); void updateSignon(@Nonnull final Account account);  }