예제 #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");
 }