Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test(expected = RuntimeException.class)
- public void userLoginWhereUserIsNotFound() {
- String username = "kentb";
- String password = "tdd-1s-c00l";
- UserRepository userRepository = new UserRepository();
- UserService userService = new UserService(userRepository);
- User user = userService.authenticate(username, password);
- }
Add Comment
Please, Sign In to add comment