use of org.simbasecurity.core.domain.validator.PasswordValidator in project simba-os by cegeka.
the class UserEntityTest method setUp.
@Before
public void setUp() {
implantMock(UserValidator.class);
PasswordValidator mockPasswordValidator = implantMock(PasswordValidator.class);
doThrow(new SimbaException(PASSWORD_INVALID_LENGTH)).when(mockPasswordValidator).validatePassword(INVALID_PASSWORD);
ConfigurationServiceImpl configurationServiceMock = implantMock(ConfigurationServiceImpl.class);
when(configurationServiceMock.getValue(SimbaConfigurationParameter.DEFAULT_PASSWORD)).thenReturn(DEFAULT_PASSWORD);
user = new UserEntity(USERNAME, null, null, null, Language.en_US, Status.ACTIVE, true, true);
}
Aggregations