Guest User

Untitled

a guest
Dec 21st, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. @Test(expected = RuntimeException.class)
  2. public void userLoginWhereUserIsNotFound() {
  3. String username = "kentb";
  4. String password = "tdd-1s-c00l";
  5. UserRepository userRepository = new UserRepository();
  6. UserService userService = new UserService(userRepository);
  7.  
  8. User user = userService.authenticate(username, password);
  9. }
Add Comment
Please, Sign In to add comment