use of com.evolveum.midpoint.xml.ns._public.common.common_3.CredentialsType in project midpoint by Evolveum.
the class TestDummyIncomplete method checkAccountWill.
@Override
protected void checkAccountWill(PrismObject<ShadowType> shadow, OperationResult result, XMLGregorianCalendar startTs, XMLGregorianCalendar endTs) throws SchemaException, EncryptionException {
super.checkAccountWill(shadow, result, startTs, endTs);
CredentialsType credentials = shadow.asObjectable().getCredentials();
assertNotNull("No credentials in " + shadow, credentials);
PasswordType password = credentials.getPassword();
assertNotNull("No password in " + shadow, password);
PrismContainerValue<PasswordType> passwordContainerValue = password.asPrismContainerValue();
PrismProperty<ProtectedStringType> valueProperty = passwordContainerValue.findProperty(PasswordType.F_VALUE);
assertTrue("Unexpected password value in " + shadow + ": " + valueProperty, valueProperty.getValues().isEmpty());
assertTrue("No incompleteness in password value in " + shadow + ": " + valueProperty, valueProperty.isIncomplete());
}
Aggregations