This commit is contained in:
Bill Burke 2016-07-22 14:42:17 -04:00
parent db852f7e11
commit b6811b96b9

View file

@ -139,7 +139,12 @@ public class UserFederationStorageTest {
Assert.assertTrue(thor.hasRole(role)); Assert.assertTrue(thor.hasRole(role));
Set<GroupModel> groups = thor.getGroups(); Set<GroupModel> groups = thor.getGroups();
Assert.assertEquals("my-group", groups.iterator().next().getName()); boolean foundGroup = false;
for (GroupModel g : groups) {
if (g.getName().equals("my-group")) foundGroup = true;
}
Assert.assertTrue(foundGroup);
System.out.println("num groups " + groups.size()); System.out.println("num groups " + groups.size());
Assert.assertTrue(thor.getRequiredActions().iterator().next().equals("POOP")); Assert.assertTrue(thor.getRequiredActions().iterator().next().equals("POOP"));
thor.removeRequiredAction("POOP"); thor.removeRequiredAction("POOP");