Skip to content

Instantly share code, notes, and snippets.

Last active June 1, 2017 06:56
What would you like to do?
public class FakeAccountRepository implements AccountRepository {
Map<User, Account> accounts = new HashMap<>();
public FakeAccountRepository() {
this.accounts.put(new User(""), new UserAccount());
this.accounts.put(new User(""), new AdminAccount());
String getPasswordHash(User user) {
return accounts.get(user).getPasswordHash();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment