Added test
This commit is contained in:
parent
45f837ae61
commit
8b52c575c3
|
@ -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.facets.SoftwareFacetImpl;
|
||||||
import org.gcube.resourcemanagement.model.impl.entities.resources.HostingNodeImpl;
|
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.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.facets.SoftwareFacet;
|
||||||
import org.gcube.resourcemanagement.model.reference.entities.resources.EService;
|
import org.gcube.resourcemanagement.model.reference.entities.resources.EService;
|
||||||
import org.gcube.resourcemanagement.model.reference.entities.resources.HostingNode;
|
import org.gcube.resourcemanagement.model.reference.entities.resources.HostingNode;
|
||||||
|
@ -192,9 +193,11 @@ public class ResourceRegistryClientTest extends ContextTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetInstancesByClass() throws ResourceRegistryException {
|
public void testGetInstancesByClass() throws Exception {
|
||||||
List<EService> eServices = resourceRegistryClient.getInstances(EService.class, true);
|
List<EventFacet> eventFacets = resourceRegistryClient.getInstances(EventFacet.class, true);
|
||||||
logger.trace("{}", eServices);
|
logger.trace("{}", eventFacets);
|
||||||
|
eventFacets = ElementMapper.unmarshalList(EventFacet.class, eventFacets.toString());
|
||||||
|
logger.trace("{}", eventFacets);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue