added test

This commit is contained in:
Luca Frosini 2021-08-04 14:12:24 +02:00
parent 5b97c45a4c
commit 7bb49b1f4c
1 changed files with 9 additions and 0 deletions

View File

@ -28,6 +28,7 @@ import org.gcube.informationsystem.model.reference.properties.PropagationConstra
import org.gcube.informationsystem.model.reference.relations.ConsistsOf;
import org.gcube.informationsystem.model.reference.relations.IsRelatedTo;
import org.gcube.informationsystem.resourceregistry.ContextTest;
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException;
import org.gcube.informationsystem.resourceregistry.api.utils.Utility;
import org.gcube.informationsystem.resourceregistry.instances.base.ElementManagementUtility;
@ -649,4 +650,12 @@ public class ERManagementTest extends ContextTest {
//
// }
@Test
public void getAllHostingNode() throws ResourceRegistryException {
ResourceManagement resourceManagement = new ResourceManagement();
resourceManagement.setElementType(HostingNode.NAME);
String ret = resourceManagement.all(true);
logger.debug("{}", ret);
}
}