Last active
January 4, 2018 05:30
-
-
Save Adrianvdh/b2e3c834e4d2a34d9a831f9c2f069612 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
@Test(expected = RuntimeException.class) | |
public void userLoginWhereUserIsNotFound() { | |
String username = "kentbeck"; | |
String password = "letmein"; | |
UserRepository userRepository = new UserRepositoryImpl(); | |
UserService userService = new UserService(userRepository); | |
User user = userService.authenticate(username, password); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment