Example #1
0
 @Test(expected = ValidationException.class)
 public void badNameRequest() {
   CreateUserRequest request = new CreateUserRequest();
   ExternalUser user = getUser();
   user.setFirstName(RandomStringUtils.random(101));
   request.setUser(user);
   request.setPassword(new PasswordRequest());
   userService.createUser(request, Role.authenticated);
 }