use of cz.metacentrum.perun.core.api.Facility in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method removeAllFacilityAttributesWhenFacilityNotExists.
@Test(expected = FacilityNotExistsException.class)
public void removeAllFacilityAttributesWhenFacilityNotExists() throws Exception {
System.out.println(CLASS_NAME + "removeAllFacilityAttributesWhenFacilityNotExists");
attributesManager.removeAllAttributes(sess, new Facility());
// shouldn't find facility
}
use of cz.metacentrum.perun.core.api.Facility in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method getFacilityAttributeWhenFacilityNotExists.
@Test(expected = FacilityNotExistsException.class)
public void getFacilityAttributeWhenFacilityNotExists() throws Exception {
System.out.println(CLASS_NAME + "getFacilityAttributeWhenFacilityNotExists");
attributesManager.getAttribute(sess, new Facility(), "urn:perun:facility:attribute-def:core:id");
// shouldn't find facility
}
use of cz.metacentrum.perun.core.api.Facility in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method getFacilityAttributesWhenFacilityNotExists.
@Test(expected = FacilityNotExistsException.class)
public void getFacilityAttributesWhenFacilityNotExists() throws Exception {
System.out.println(CLASS_NAME + "getFacilityAttributesWhenFacilityNotExists");
attributesManager.getAttributes(sess, new Facility());
// shouldn't find facility
}
use of cz.metacentrum.perun.core.api.Facility in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method removeFacilityAttributesWhenFacilityNotExists.
@Test(expected = FacilityNotExistsException.class)
public void removeFacilityAttributesWhenFacilityNotExists() throws Exception {
System.out.println(CLASS_NAME + "removeFacilityAttributesWhenFacilityNotExists");
attributes = setUpFacilityAttribute();
attributesManager.removeAttributes(sess, new Facility(), attributes);
// shouldn't find facility
}
use of cz.metacentrum.perun.core.api.Facility in project perun by CESNET.
the class AttributesManagerEntryIntegrationTest method removeAllFacilityUserAttributesWhenFacilityNotExists.
@Test(expected = FacilityNotExistsException.class)
public void removeAllFacilityUserAttributesWhenFacilityNotExists() throws Exception {
System.out.println(CLASS_NAME + "removeAllFacilityUserAttributesWhenFacilityNotExists");
vo = setUpVo();
member = setUpMember();
User user = perun.getUsersManager().getUserByMember(sess, member);
attributesManager.removeAllAttributes(sess, new Facility(), user);
// shouldn't find facility
}
Aggregations