Skip to content

Instantly share code, notes, and snippets.

@Adrianvdh
Last active January 4, 2018 05:17
Show Gist options
  • Save Adrianvdh/7e64ed6df32038e3b9011036619aeb7f to your computer and use it in GitHub Desktop.
Save Adrianvdh/7e64ed6df32038e3b9011036619aeb7f to your computer and use it in GitHub Desktop.
@Test
public void userCanLogin() {
String username = "adrianvdh";
String password = "hello123";
UserRepository userRepository = new UserRepositoryImpl();
UserService userService = new UserService(userRepository);
User user = userService.authenticate(username, password);
Assert.assertEquals("adrianvdh", user.username);
Assert.assertEquals("hello123", user.password);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment