Пример #1
0
 @Test
 public void emailDoesNotAlreadyExistTest() {
   userRepository.checkEmailAlreadyExists("testEmail");
 }
Пример #2
0
 @Test(expected = ObjectAlreadyExistException.class)
 public void emailAlreadyTest() {
   userRepository.addUser(new User("testEmail", "testPW", "testUser", "testRole"));
   userRepository.checkEmailAlreadyExists("testEmail");
 }