Added test

This commit is contained in:
Luca Frosini 2024-06-25 12:01:26 +02:00
parent 45f837ae61
commit 8b52c575c3
1 changed files with 6 additions and 3 deletions

View File

@ -33,6 +33,7 @@ import org.gcube.informationsystem.utils.UUIDUtility;
import org.gcube.resourcemanagement.model.impl.entities.facets.SoftwareFacetImpl;
import org.gcube.resourcemanagement.model.impl.entities.resources.HostingNodeImpl;
import org.gcube.resourcemanagement.model.reference.entities.facets.ContactFacet;
import org.gcube.resourcemanagement.model.reference.entities.facets.EventFacet;
import org.gcube.resourcemanagement.model.reference.entities.facets.SoftwareFacet;
import org.gcube.resourcemanagement.model.reference.entities.resources.EService;
import org.gcube.resourcemanagement.model.reference.entities.resources.HostingNode;
@ -192,9 +193,11 @@ public class ResourceRegistryClientTest extends ContextTest {
}
@Test
public void testGetInstancesByClass() throws ResourceRegistryException {
List<EService> eServices = resourceRegistryClient.getInstances(EService.class, true);
logger.trace("{}", eServices);
public void testGetInstancesByClass() throws Exception {
List<EventFacet> eventFacets = resourceRegistryClient.getInstances(EventFacet.class, true);
logger.trace("{}", eventFacets);
eventFacets = ElementMapper.unmarshalList(EventFacet.class, eventFacets.toString());
logger.trace("{}", eventFacets);
}
@Test