Skip to content

Instantly share code, notes, and snippets.

Last active June 1, 2017 06:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save woprzech/ed53ca2662f1c72aad0ab3d412defbbd to your computer and use it in GitHub Desktop.
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