Exemplo n.º 1
0
 @Test
 public void emailDoesNotAlreadyExistTest() {
   userRepository.checkEmailAlreadyExists("testEmail");
 }
Exemplo n.º 2
0
 @Test(expected = ObjectAlreadyExistException.class)
 public void emailAlreadyTest() {
   userRepository.addUser(new User("testEmail", "testPW", "testUser", "testRole"));
   userRepository.checkEmailAlreadyExists("testEmail");
 }