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 0642f6c..4ae6882 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientTest.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/client/ResourceRegistryClientTest.java @@ -15,6 +15,7 @@ import org.gcube.informationsystem.base.reference.Direction; import org.gcube.informationsystem.contexts.reference.entities.Context; import org.gcube.informationsystem.contexts.reference.relations.IsParentOf; import org.gcube.informationsystem.model.impl.properties.MetadataImpl; +import org.gcube.informationsystem.model.knowledge.ModelKnowledge; import org.gcube.informationsystem.model.reference.ERElement; import org.gcube.informationsystem.model.reference.entities.Resource; import org.gcube.informationsystem.model.reference.properties.Metadata; @@ -25,6 +26,7 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaN import org.gcube.informationsystem.serialization.ElementMapper; import org.gcube.informationsystem.tree.Node; import org.gcube.informationsystem.tree.Tree; +import org.gcube.informationsystem.types.knowledge.TypeInformation; import org.gcube.informationsystem.types.reference.Type; import org.gcube.informationsystem.utils.UUIDManager; import org.gcube.informationsystem.utils.UUIDUtility; @@ -114,12 +116,20 @@ public class ResourceRegistryClientTest extends ContextTest { @Test public void testGetModelKnowledge() throws SchemaNotFoundException, ResourceRegistryException { AccessType[] modelTypes = AccessType.getModelTypes(); + ModelKnowledge modelKnowledge = ((ResourceRegistryClientImpl) resourceRegistryClient).getModelKnowledge(); for(AccessType accessType : modelTypes) { - Tree tree = ((ResourceRegistryClientImpl) resourceRegistryClient).getModelKnowledge().getTree(accessType); + Tree tree = modelKnowledge.getTree(accessType); logger.trace("{}", tree); } } + @Test + public void testGetResourceTree() throws SchemaNotFoundException, ResourceRegistryException { + Tree tree = ((ResourceRegistryClientImpl) resourceRegistryClient).getModelKnowledge().getTree(AccessType.RESOURCE); + logger.trace("{}", tree); + + + } @Test public void testGetNode() throws SchemaNotFoundException, ResourceRegistryException {