Skip to content

Commit

Permalink
Fixing provisioning tests after schema change from properties to cont…
Browse files Browse the repository at this point in the history
…ainers
  • Loading branch information
semancik committed Jun 27, 2018
1 parent bc114b0 commit f40dc6f
Showing 1 changed file with 8 additions and 8 deletions.
Expand Up @@ -339,11 +339,11 @@ public void test020ModifyAndGetResource() throws Exception {
OperationResult result = task.getResult();

// Change something that's not that important
ProjectionPolicyType accountSynchronizationSettingsType = new ProjectionPolicyType();
accountSynchronizationSettingsType.setLegalize(true);
ProjectionPolicyType projectionPolicyType = new ProjectionPolicyType();
projectionPolicyType.setLegalize(true);

ObjectDelta<ResourceType> objectDelta = ObjectDelta.createModificationReplaceProperty(ResourceType.class, RESOURCE_DUMMY_OID,
ResourceType.F_PROJECTION, prismContext, accountSynchronizationSettingsType);
ObjectDelta<ResourceType> objectDelta = ObjectDelta.createModificationReplaceContainer(ResourceType.class, RESOURCE_DUMMY_OID,
ResourceType.F_PROJECTION, prismContext, projectionPolicyType);

// WHEN
provisioningService.modifyObject(ResourceType.class, RESOURCE_DUMMY_OID, objectDelta.getModifications(), null, null, task, result);
Expand Down Expand Up @@ -450,11 +450,11 @@ public void test023ModifyRepoAndGetResource() throws Exception {
OperationResult result = task.getResult();

// Change something that's not that important
ProjectionPolicyType accountSynchronizationSettingsType = new ProjectionPolicyType();
accountSynchronizationSettingsType.setLegalize(true);
ProjectionPolicyType projectionPolicyType = new ProjectionPolicyType();
projectionPolicyType.setLegalize(true);

ObjectDelta<ResourceType> objectDelta = ObjectDelta.createModificationReplaceProperty(ResourceType.class, RESOURCE_DUMMY_OID,
ResourceType.F_PROJECTION, prismContext, accountSynchronizationSettingsType);
ObjectDelta<ResourceType> objectDelta = ObjectDelta.createModificationReplaceContainer(ResourceType.class, RESOURCE_DUMMY_OID,
ResourceType.F_PROJECTION, prismContext, projectionPolicyType);

// WHEN
repositoryService.modifyObject(ResourceType.class, RESOURCE_DUMMY_OID, objectDelta.getModifications(), result);
Expand Down

0 comments on commit f40dc6f

Please sign in to comment.