Skip to content

Commit

Permalink
Updated out-of-date test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed May 24, 2016
1 parent 67727a1 commit 3752584
Showing 1 changed file with 8 additions and 8 deletions.
Expand Up @@ -1106,14 +1106,14 @@ public void test402JackChangeMinistryOfOffenseMemberToManagerByAddingRemovingAss
// THEN
PrismObject<UserType> userJack = getUser(USER_JACK_OID);
display("User jack after", userJack);
assertUserAssignedOrgs(userJack, ORG_MINISTRY_OF_OFFENSE_OID);
assertAssignedOrg(userJack, ORG_MINISTRY_OF_OFFENSE_OID, null); // because of object template
assertAssignedOrg(userJack, ORG_MINISTRY_OF_OFFENSE_OID, SchemaConstants.ORG_MANAGER); // because of the modification
assertUserHasOrgs(userJack, ORG_MINISTRY_OF_OFFENSE_OID, ORG_MINISTRY_OF_OFFENSE_OID);
assertHasOrg(userJack, ORG_MINISTRY_OF_OFFENSE_OID, SchemaConstants.ORG_MANAGER);
assertHasOrg(userJack, ORG_MINISTRY_OF_OFFENSE_OID, null);

// Postcondition
assertUserAssignedOrgs(userJack, ORG_MINISTRY_OF_OFFENSE_OID);
// No assignment from object template. The object template mapping is normal. It will NOT be applied
// because there is primary delta.
assertAssignedOrg(userJack, ORG_MINISTRY_OF_OFFENSE_OID, SchemaConstants.ORG_MANAGER); // because of the modification
assertUserHasOrgs(userJack, ORG_MINISTRY_OF_OFFENSE_OID);
assertHasOrg(userJack, ORG_MINISTRY_OF_OFFENSE_OID, SchemaConstants.ORG_MANAGER);

// Postcondition
assertMonkeyIslandOrgSanity();
}

Expand Down

0 comments on commit 3752584

Please sign in to comment.