Skip to content

Commit

Permalink
Fixed provisioning tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Oct 26, 2016
1 parent b3f248c commit cbddfc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -330,7 +330,9 @@ public void test158DeleteValidToValidFrom() throws Exception {
ACCOUNT_WILL_OID, SchemaConstants.PATH_ACTIVATION_VALID_TO, prismContext,
XmlTypeConverter.createXMLGregorianCalendar(VALID_TO_MILLIS));
PrismObjectDefinition def = prismContext.getSchemaRegistry().findObjectDefinitionByCompileTimeClass(ShadowType.class);
PropertyDelta validFromDelta = PropertyDelta.createModificationDeleteProperty(SchemaConstants.PATH_ACTIVATION_VALID_FROM, def.findPropertyDefinition(SchemaConstants.PATH_ACTIVATION_VALID_FROM), VALID_FROM_MILLIS);
PropertyDelta validFromDelta = PropertyDelta.createModificationDeleteProperty(SchemaConstants.PATH_ACTIVATION_VALID_FROM,
def.findPropertyDefinition(SchemaConstants.PATH_ACTIVATION_VALID_FROM),
XmlTypeConverter.createXMLGregorianCalendar(VALID_FROM_MILLIS));
delta.addModification(validFromDelta);
delta.checkConsistence();

Expand Down
Expand Up @@ -743,7 +743,7 @@ public void test610ChangePassword() throws Exception {
propMod.setPath(path);

//set the replace value
MapXNode passPsXnode = ((PrismContextImpl) prismContext).getBeanMarshaller().marshalProtectedDataType(passPs);
MapXNode passPsXnode = ((PrismContextImpl) prismContext).getBeanMarshaller().marshalProtectedDataType(passPs, null);
RawType value = new RawType(passPsXnode, prismContext);
propMod.getValue().add(value);

Expand Down

0 comments on commit cbddfc4

Please sign in to comment.