Skip to content

Commit

Permalink
Improved tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Jan 13, 2015
1 parent 7057f3e commit ff25d44
Showing 1 changed file with 12 additions and 3 deletions.
Expand Up @@ -1181,7 +1181,10 @@ public void test143BarbossaDisableAssignmentRedSailor() throws Exception {
// THEN
TestUtil.displayThen(TEST_NAME);
assertDummyAccount(RESOURCE_DUMMY_RED_NAME, USER_BARBOSSA_USERNAME, USER_BARBOSSA_FULL_NAME, false);
// TODO: check attributes
assertNoDummyAccountAttribute(RESOURCE_DUMMY_RED_NAME, USER_BARBOSSA_USERNAME,
DummyResourceContoller.DUMMY_ACCOUNT_ATTRIBUTE_TITLE_NAME);
assertNoDummyAccountAttribute(RESOURCE_DUMMY_RED_NAME, USER_BARBOSSA_USERNAME,
DummyResourceContoller.DUMMY_ACCOUNT_ATTRIBUTE_DRINK_NAME);

PrismObject<UserType> user = getUser(USER_BARBOSSA_OID);
display("User after", user);
Expand Down Expand Up @@ -1310,7 +1313,10 @@ public void test146BarbossaDisableBothRedAssignments() throws Exception {
// THEN
TestUtil.displayThen(TEST_NAME);
assertDummyAccount(RESOURCE_DUMMY_RED_NAME, USER_BARBOSSA_USERNAME, USER_BARBOSSA_FULL_NAME, false);
// TODO: attributes
assertNoDummyAccountAttribute(RESOURCE_DUMMY_RED_NAME, USER_BARBOSSA_USERNAME,
DummyResourceContoller.DUMMY_ACCOUNT_ATTRIBUTE_TITLE_NAME);
assertNoDummyAccountAttribute(RESOURCE_DUMMY_RED_NAME, USER_BARBOSSA_USERNAME,
DummyResourceContoller.DUMMY_ACCOUNT_ATTRIBUTE_DRINK_NAME);

PrismObject<UserType> user = getUser(USER_BARBOSSA_OID);
display("User after", user);
Expand Down Expand Up @@ -1451,7 +1457,10 @@ public void test149BarbossaDisableBothRedAssignmentsUnassign() throws Exception
// THEN
TestUtil.displayThen(TEST_NAME);
assertDummyAccount(RESOURCE_DUMMY_RED_NAME, USER_BARBOSSA_USERNAME, USER_BARBOSSA_FULL_NAME, false);
// TODO: check attributes
assertNoDummyAccountAttribute(RESOURCE_DUMMY_RED_NAME, USER_BARBOSSA_USERNAME,
DummyResourceContoller.DUMMY_ACCOUNT_ATTRIBUTE_TITLE_NAME);
assertNoDummyAccountAttribute(RESOURCE_DUMMY_RED_NAME, USER_BARBOSSA_USERNAME,
DummyResourceContoller.DUMMY_ACCOUNT_ATTRIBUTE_DRINK_NAME);
assertNoDummyAccount(null, USER_BARBOSSA_USERNAME); // to be on the safe side

user = getUser(USER_BARBOSSA_OID);
Expand Down

0 comments on commit ff25d44

Please sign in to comment.