Search in sources :

Example 1 with UserValidator

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);
}
Also used : UserValidator(org.entando.entando.web.user.validator.UserValidator) Before(org.junit.Before)

Aggregations

UserValidator (org.entando.entando.web.user.validator.UserValidator)1 Before (org.junit.Before)1