use of cz.metacentrum.perun.core.api.Group in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method getGroupResourceAttributeByIdWhenGroupNotExists.
@Test(expected = GroupNotExistsException.class)
public void getGroupResourceAttributeByIdWhenGroupNotExists() throws Exception {
System.out.println(CLASS_NAME + "getGroupResourceAttributeByIdWhenGroupNotExists");
vo = setUpVo();
facility = setUpFacility();
resource = setUpResource();
attributes = setUpGroupResourceAttribute();
int id = attributes.get(0).getId();
attributesManager.getAttributeById(sess, resource, new Group(), id);
// shouldn't find group
}
use of cz.metacentrum.perun.core.api.Group in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method removeGroupAttributesWhenGroupNotExists.
@Test(expected = GroupNotExistsException.class)
public void removeGroupAttributesWhenGroupNotExists() throws Exception {
System.out.println(CLASS_NAME + "removeGroupAttributesWhenGroupNotExists");
attributes = setUpUserAttribute();
attributesManager.removeAttributes(sess, new Group(), attributes);
// shouldn't find group
}
use of cz.metacentrum.perun.core.api.Group in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method getRequiredGroupAttributesFromOneServiceWhenGroupNotExists.
@Test(expected = GroupNotExistsException.class)
public void getRequiredGroupAttributesFromOneServiceWhenGroupNotExists() throws Exception {
System.out.println(CLASS_NAME + "getRequiredGroupAttributesFromOneServiceWhenGroupNotExists");
service = setUpService();
attributes = setUpRequiredAttributes();
attributesManager.getRequiredAttributes(sess, service, new Group());
// shouldn't find group
}
use of cz.metacentrum.perun.core.api.Group in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method removeAllGroupResourceAttributesWhenGroupNotExists.
@Test(expected = GroupNotExistsException.class)
public void removeAllGroupResourceAttributesWhenGroupNotExists() throws Exception {
System.out.println(CLASS_NAME + "removeAllGroupResourceAttributesWhenGroupNotExists");
vo = setUpVo();
facility = setUpFacility();
resource = setUpResource();
attributesManager.removeAllAttributes(sess, resource, new Group());
// shouldn't find group
}
use of cz.metacentrum.perun.core.api.Group in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method setGroupResourceAttributesWhenMemberNotExists.
@Test(expected = GroupNotExistsException.class)
public void setGroupResourceAttributesWhenMemberNotExists() throws Exception {
System.out.println(CLASS_NAME + "setMemberResourceAttributesWhenMemberNotExists");
vo = setUpVo();
facility = setUpFacility();
resource = setUpResource();
attributes = setUpGroupResourceAttribute();
attributesManager.setAttributes(sess, resource, new Group(), attributes);
// shouldn't find group
}
Aggregations