use of cz.metacentrum.perun.core.api.PerunPrincipal in project perun by CESNET.
the class urn_perun_member_group_attribute_def_virt_isGroupAdminTest method setUp.
@Before
public void setUp() throws Exception {
classInstance = new urn_perun_member_group_attribute_def_virt_isGroupAdmin();
usersManager = perun.getUsersManager();
vosManager = perun.getVosManager();
membersManager = perun.getMembersManager();
groupsManager = perun.getGroupsManager();
final PerunPrincipal pp = new PerunPrincipal("perunTests", ExtSourcesManager.EXTSOURCE_NAME_INTERNAL, ExtSourcesManager.EXTSOURCE_INTERNAL);
this.session = new PerunSessionImpl(perun, pp, new PerunClient());
this.attrDef = classInstance.getAttributeDefinition();
this.attribute = new Attribute(attrDef);
this.user = setUpUser();
this.vo = setUpVo();
this.member = setUpMember(vo);
this.group = setUpGroup(vo, member);
}
use of cz.metacentrum.perun.core.api.PerunPrincipal in project perun by CESNET.
the class AbstractTest method setUpSess.
@Before
public void setUpSess() throws Exception {
final PerunPrincipal pp = new PerunPrincipal("perunTests", ExtSourcesManager.EXTSOURCE_NAME_INTERNAL, ExtSourcesManager.EXTSOURCE_INTERNAL);
sess = perun.getPerunSession(pp, new PerunClient());
}
Aggregations