Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Adrianvdh/b2e3c834e4d2a34d9a831f9c2f069612 to your computer and use it in GitHub Desktop.
Save Adrianvdh/b2e3c834e4d2a34d9a831f9c2f069612 to your computer and use it in GitHub Desktop.
@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