use of com.evolveum.midpoint.xml.ns._public.common.common_3.PasswordHistoryEntryType in project midpoint by Evolveum.
the class TestPasswordPolicyProcessor method test202createUserJackNoPasswordHistory.
@Test
public void test202createUserJackNoPasswordHistory() throws Exception {
final String TEST_NAME = "test202createUserJackNoPasswordHistory";
TestUtil.displayTestTile(TEST_NAME);
// WHEN
addObject(USER_JACK_FILE);
// THEN
PrismObject<UserType> userJack = getObject(UserType.class, USER_JACK_OID);
assertNotNull("Expected to find user Jack, but no one exists here", userJack);
UserType userJackType = userJack.asObjectable();
CredentialsType credentials = userJackType.getCredentials();
assertNotNull("User Jack has no credentials", credentials);
PasswordType password = credentials.getPassword();
assertNotNull("User Jack has no password", password);
List<PasswordHistoryEntryType> historyEntries = password.getHistoryEntry();
assertEquals("Expected no history entries, but found: " + historyEntries.size(), 0, historyEntries.size());
}
Aggregations