Esempio n. 1
0
 @Test
 public void testGetByEmail() throws MovieException {
   String email = "*****@*****.**";
   User user = service.getUserByEmail(email);
   assertNotNull(user);
   assertEquals(user.getEmail(), email);
 }
Esempio n. 2
0
 @Test(expected = MovieException.class)
 public void testGetByEmptyEmail() throws MovieException {
   String email = "";
   service.getUserByEmail(email);
 }