@Test public void insertAccount_shouldInsertNewAccount() { Account newAccount = createAccountBuilderWithAllFields().build(); persistence.insertAccount(newAccount); Account persistedAccount = persistence.read(newAccount.getUsername()); assertHaveSamePersistentFields(newAccount, persistedAccount); }
@Override public void insertAccount(@Nonnull final Account account) { checkNotNull(account, "Argument[account] must not be null"); create(account); }
AccountBasePersistence extends AbstractBasePersistence<Account, String> implements AccountMapper { @Override public void insertAccount(@Nonnull final Account account) { checkNotNull(account, "Argument[account] must not be null"); create(account); } }
AccountBasePersistence extends AbstractBasePersistence<Account, String> implements AccountMapper { @Override public void insertAccount(@Nonnull final Account account) { checkNotNull(account, "Argument[account] must not be null"); create(account); }  }
AccountBasePersistence extends AbstractBasePersistence<Account, String> implements AccountMapper { @Override public void insertAccount(@Nonnull final Account account) { checkNotNull(account, "Argument[account] must not be null"); create(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 insertAccount(@Nonnull final Account account) { checkNotNull(account, "Argument[account] must not be null"); create(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);  }