use of org.picketlink.idm.RelationshipManager in project wildfly by wildfly.
the class AbstractBasicIdentityManagementTestCase method testRelationshipManagement.
@Test
@InSequence(5)
public void testRelationshipManagement() throws Exception {
PartitionManager partitionManager = getPartitionManager();
IdentityManager identityManager = partitionManager.createIdentityManager();
User user = getUser(identityManager, "johny");
Role role = getRole(identityManager, "admin");
RelationshipManager relationshipManager = partitionManager.createRelationshipManager();
BasicModel.grantRole(relationshipManager, user, role);
assertTrue(hasRole(relationshipManager, user, role));
}
Aggregations