use of cz.metacentrum.perun.core.api.SecurityTeam in project perun by CESNET.
the class FacilitiesManagerEntryIntegrationTest method setUpSecurityTeam2.
private SecurityTeam setUpSecurityTeam2() throws Exception {
SecurityTeam st = new SecurityTeam("Security2", "Description test 2");
perun.getSecurityTeamsManagerBl().createSecurityTeam(sess, st);
return st;
}
use of cz.metacentrum.perun.core.api.SecurityTeam in project perun by CESNET.
the class FacilitiesManagerEntryIntegrationTest method assignSecurityTeamFacilityNotExists.
@Test(expected = FacilityNotExistsException.class)
public void assignSecurityTeamFacilityNotExists() throws Exception {
System.out.println(CLASS_NAME + "assignSecurityTeamFacilityNotExists");
SecurityTeam st0 = setUpSecurityTeam0();
setUpSecurityTeam1();
// should throw an exception
facilitiesManagerEntry.assignSecurityTeam(sess, new Facility(0, "Name"), st0);
}
Aggregations