Search in sources :

Example 11 with ServicesPackage

use of cz.metacentrum.perun.core.api.ServicesPackage in project perun by CESNET.

the class ServicesManagerEntryIntegrationTest method getServicesPackageById.

@Test
public void getServicesPackageById() throws Exception {
    System.out.println(CLASS_NAME + "getServicesPackageById");
    service = setUpService();
    servicesPackage = setUpServicesPackage(service);
    ServicesPackage returnedPackage = perun.getServicesManager().getServicesPackageById(sess, servicesPackage.getId());
    assertNotNull("unable to get services package by ID", returnedPackage);
    assertEquals("returned services package should be the same we added", returnedPackage, servicesPackage);
}
Also used : ServicesPackage(cz.metacentrum.perun.core.api.ServicesPackage) AbstractPerunIntegrationTest(cz.metacentrum.perun.core.AbstractPerunIntegrationTest) Test(org.junit.Test)

Aggregations

ServicesPackage (cz.metacentrum.perun.core.api.ServicesPackage)11 AbstractPerunIntegrationTest (cz.metacentrum.perun.core.AbstractPerunIntegrationTest)9 Test (org.junit.Test)9 Service (cz.metacentrum.perun.core.api.Service)2 ServicesPackageExistsException (cz.metacentrum.perun.core.api.exceptions.ServicesPackageExistsException)1 ServicesPackageNotExistsException (cz.metacentrum.perun.core.api.exceptions.ServicesPackageNotExistsException)1