Last active
January 3, 2018 05:11
-
-
Save Adrianvdh/0a672ed29e52183fe0d9917202d941e1 to your computer and use it in GitHub Desktop.
Tdd examples from http://scholarcoder.com/1392/ttd-intro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class UserService { | |
List<User> users = new ArrayList<>(); | |
{ | |
User user = new User(); | |
user.username = "adrianvdh"; | |
user.password = "hello123"; | |
users.add(user); | |
} | |
public User authenticate(String username, String password) { | |
return this.users.get(0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment