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