Search in sources :

Example 1 with UaaChangePasswordService

use of org.cloudfoundry.identity.uaa.account.UaaChangePasswordService in project uaa by cloudfoundry.

the class UaaChangePasswordServiceTest method setUp.

@Before
public void setUp() {
    SecurityContextHolder.clearContext();
    SecurityContextHolder.getContext().setAuthentication(new MockAuthentication());
    scimUserProvisioning = mock(ScimUserProvisioning.class);
    passwordValidator = mock(PasswordValidator.class);
    subject = new UaaChangePasswordService(scimUserProvisioning, passwordValidator);
}
Also used : MockAuthentication(org.cloudfoundry.identity.uaa.test.MockAuthentication) PasswordValidator(org.cloudfoundry.identity.uaa.scim.validate.PasswordValidator) ScimUserProvisioning(org.cloudfoundry.identity.uaa.scim.ScimUserProvisioning) UaaChangePasswordService(org.cloudfoundry.identity.uaa.account.UaaChangePasswordService) Before(org.junit.Before)

Aggregations

UaaChangePasswordService (org.cloudfoundry.identity.uaa.account.UaaChangePasswordService)1 ScimUserProvisioning (org.cloudfoundry.identity.uaa.scim.ScimUserProvisioning)1 PasswordValidator (org.cloudfoundry.identity.uaa.scim.validate.PasswordValidator)1 MockAuthentication (org.cloudfoundry.identity.uaa.test.MockAuthentication)1 Before (org.junit.Before)1