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