use of org.entando.entando.web.user.validator.UserValidator in project entando-core by entando.
the class UserControllerUnitTest method setUp.
@Before
public void setUp() throws Exception {
MockitoAnnotations.initMocks(this);
mockMvc = MockMvcBuilders.standaloneSetup(controller).addInterceptors(entandoOauth2Interceptor).setHandlerExceptionResolvers(createHandlerExceptionResolver()).build();
UserValidator userValidator = new UserValidator();
userValidator.setUserManager(userManager);
userValidator.setGroupManager(groupManager);
userValidator.setRoleManager(roleManager);
userValidator.setPasswordEncoder(passwordEncoder);
this.controller.setUserValidator(userValidator);
}
Aggregations