예제 #1
0
 @Test
 public void userIdDoesNotAlreadyExistTest() {
   userRepository.checkUserIdAlreadyExists("testUser");
 }
예제 #2
0
 @Test(expected = ObjectAlreadyExistException.class)
 public void userIdAlreadyTest() {
   userRepository.addUser(new User("testEmail", "testPW", "testUser", "testRole"));
   userRepository.checkUserIdAlreadyExists("testUser");
 }