diff --git a/CHANGELOG.md b/CHANGELOG.md index 93f9dbc..c2b375f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Add/Remove to/from Context return the list of affected instances and not just success or failure code [#20555] - Aligned client with changes of Sharing REST collection redesign [#20530][#20555] - Aligned overrided APIs [#21979] - +- Getting all the relations of a type it is returned a list of relations and not the list of Resources sources of such relation [#22003] ## [v4.1.0] diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/publisher/old/ERManagementTest.java b/src/test/java/org/gcube/informationsystem/resourceregistry/publisher/old/ERManagementTest.java index 97ed5ed..cedb742 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/publisher/old/ERManagementTest.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/publisher/old/ERManagementTest.java @@ -505,7 +505,8 @@ public class ERManagementTest extends ContextTest { /* Getting all IsRelatedTo polymorphic and non polymorphic */ - List resourcesList = resourceRegistryClient.getInstances(IsRelatedTo.class, true); + @SuppressWarnings("rawtypes") + List resourcesList = resourceRegistryClient.getInstances(IsRelatedTo.class, true); logger.debug("{} are {} : {} ", IsRelatedTo.NAME, resourcesList.size(), resourcesList); Assert.assertTrue(resourcesList.size() == MAX); @@ -514,10 +515,12 @@ public class ERManagementTest extends ContextTest { /* Getting all ConsistsOf polymorphic and non polymorphic */ - List consistsOfPolimorphicList = resourceRegistryClient.getInstances(ConsistsOf.class, true); + @SuppressWarnings("rawtypes") + List consistsOfPolimorphicList = resourceRegistryClient.getInstances(ConsistsOf.class, true); logger.debug("{} are {} : {} ", IsRelatedTo.NAME, consistsOfPolimorphicList.size(), consistsOfPolimorphicList); - List consistsOfNonPolimorphicList = resourceRegistryClient.getInstances(ConsistsOf.class, false); + @SuppressWarnings("rawtypes") + List consistsOfNonPolimorphicList = resourceRegistryClient.getInstances(ConsistsOf.class, false); logger.debug("{} are {} : {} ", IsRelatedTo.NAME, consistsOfNonPolimorphicList.size(), consistsOfNonPolimorphicList);