Set Enum values uppercase

This commit is contained in:
Luca Frosini 2020-10-01 14:40:36 +02:00
parent 8a8b3001ef
commit 740212fbb7
3 changed files with 5 additions and 5 deletions

View File

@ -9,6 +9,6 @@ package org.gcube.informationsystem.resourceregistry.client;
*/
public enum Direction {
in, out, both;
IN, OUT, BOTH;
}

View File

@ -414,7 +414,7 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient {
@Override
public String getResourcesFromReferenceFacet(String resourceType, String consistsOfType, String facetType,
UUID facetUUID, boolean polymorphic) throws ResourceRegistryException {
return getRelated(resourceType, consistsOfType, facetType, facetUUID, Direction.out, polymorphic);
return getRelated(resourceType, consistsOfType, facetType, facetUUID, Direction.OUT, polymorphic);
}
@SuppressWarnings("unchecked")
@ -436,7 +436,7 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient {
@Override
public String getFilteredResources(String resourceType, String consistsOfType, String facetType,
boolean polymorphic, Map<String,String> map) throws ResourceRegistryException {
return getRelated(resourceType, consistsOfType, facetType, Direction.out, polymorphic, map);
return getRelated(resourceType, consistsOfType, facetType, Direction.OUT, polymorphic, map);
}
@Override

View File

@ -114,7 +114,7 @@ public class ResourceRegistryClientTest extends ContextTest {
@Test
public void testGetRelatedResourcesByClasses() throws ResourceRegistryException {
List<EService> eServices = resourceRegistryClient.getRelatedResources(EService.class, IsRelatedTo.class,
Resource.class, Direction.out, true);
Resource.class, Direction.OUT, true);
logger.trace("{}", eServices);
}
@ -125,7 +125,7 @@ public class ResourceRegistryClientTest extends ContextTest {
Header header = new HeaderImpl(uuid);
hostingNode.setHeader(header);
List<EService> eServices = resourceRegistryClient.getRelatedResourcesFromReferenceResource(EService.class,
IsRelatedTo.class, HostingNode.class, hostingNode, Direction.out, true);
IsRelatedTo.class, HostingNode.class, hostingNode, Direction.OUT, true);
logger.trace("{}", eServices);
}