Added tests

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-client@133661 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-10-27 15:51:22 +00:00
parent dedec490d7
commit ea7b88d120
1 changed files with 17 additions and 0 deletions

View File

@ -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);
}
}