From 8b52c575c323f1136c75e4933288af53ed962009 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Tue, 25 Jun 2024 12:01:26 +0200 Subject: [PATCH] Added test --- .../client/ResourceRegistryClientTest.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientTest.java b/src/test/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientTest.java index 069ce80..bdaed97 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientTest.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientTest.java @@ -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 eServices = resourceRegistryClient.getInstances(EService.class, true); - logger.trace("{}", eServices); + public void testGetInstancesByClass() throws Exception { + List eventFacets = resourceRegistryClient.getInstances(EventFacet.class, true); + logger.trace("{}", eventFacets); + eventFacets = ElementMapper.unmarshalList(EventFacet.class, eventFacets.toString()); + logger.trace("{}", eventFacets); } @Test