Commit 697791fa authored by Matija Obreza's avatar Matija Obreza
Browse files

Updated failing changePasswordTest (PasswordPolicy)

parent 06126fa8
...@@ -35,11 +35,11 @@ public class BasicUserServiceTest extends ServiceTest { ...@@ -35,11 +35,11 @@ public class BasicUserServiceTest extends ServiceTest {
@Test @Test
public void testChangePassword() throws UserException { public void testChangePassword() throws UserException {
TestUser user = testUserService.createUser(USER_EMAIL, USER_FULLNAME, "password", AccountType.LOCAL); TestUser user = testUserService.createUser(USER_EMAIL, USER_FULLNAME, "password1!", AccountType.LOCAL);
assertThat(user.getId(), is(notNullValue())); assertThat(user.getId(), is(notNullValue()));
assertThat(user.getUuid(), is(notNullValue())); assertThat(user.getUuid(), is(notNullValue()));
assertThat(user.getAccountType(), is(AccountType.LOCAL)); assertThat(user.getAccountType(), is(AccountType.LOCAL));
testUserService.changePassword(user, "newPassword"); testUserService.changePassword(user, "newPassword2#");
} }
@Test(expected = PasswordPolicyException.class) @Test(expected = PasswordPolicyException.class)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment