From ea7b88d12020dd4d6be4db1bcf9f1373eef37da8 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Thu, 27 Oct 2016 15:51:22 +0000 Subject: [PATCH] Added tests git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-client@133661 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../proxy/ResourceRegistryClientTest.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/client/proxy/ResourceRegistryClientTest.java b/src/test/java/org/gcube/informationsystem/resourceregistry/client/proxy/ResourceRegistryClientTest.java index 94673f2..c45e3ea 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/client/proxy/ResourceRegistryClientTest.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/client/proxy/ResourceRegistryClientTest.java @@ -5,6 +5,7 @@ package org.gcube.informationsystem.resourceregistry.client.proxy; import org.gcube.common.scope.api.ScopeProvider; import org.gcube.informationsystem.resourceregistry.api.exceptions.InvalidQueryException; +import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaNotFoundException; import org.junit.Before; import org.junit.Test; import org.slf4j.Logger; @@ -33,4 +34,20 @@ public class ResourceRegistryClientTest { logger.debug(res); } + + @Test + public void testgetFacetSchema() throws SchemaNotFoundException { + String res = resourceRegistryClient.getFacetSchema("ContactFacet"); + logger.debug(res); + } + + @Test + public void testgetResourceSchema() throws SchemaNotFoundException { + String res = resourceRegistryClient.getResourceSchema("HostingNode"); + logger.debug(res); + } + + + + }