Fixed test to comply with #22003

This commit is contained in:
Luca Frosini 2021-09-14 16:27:18 +02:00
parent 242d41f07b
commit 487ab87d99
2 changed files with 7 additions and 4 deletions

View File

@ -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] - 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 client with changes of Sharing REST collection redesign [#20530][#20555]
- Aligned overrided APIs [#21979] - 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] ## [v4.1.0]

View File

@ -505,7 +505,8 @@ public class ERManagementTest extends ContextTest {
/* Getting all IsRelatedTo polymorphic and non polymorphic */ /* Getting all IsRelatedTo polymorphic and non polymorphic */
List<Resource> resourcesList = resourceRegistryClient.getInstances(IsRelatedTo.class, true); @SuppressWarnings("rawtypes")
List<IsRelatedTo> resourcesList = resourceRegistryClient.getInstances(IsRelatedTo.class, true);
logger.debug("{} are {} : {} ", IsRelatedTo.NAME, resourcesList.size(), resourcesList); logger.debug("{} are {} : {} ", IsRelatedTo.NAME, resourcesList.size(), resourcesList);
Assert.assertTrue(resourcesList.size() == MAX); Assert.assertTrue(resourcesList.size() == MAX);
@ -514,10 +515,12 @@ public class ERManagementTest extends ContextTest {
/* Getting all ConsistsOf polymorphic and non polymorphic */ /* Getting all ConsistsOf polymorphic and non polymorphic */
List<Resource> consistsOfPolimorphicList = resourceRegistryClient.getInstances(ConsistsOf.class, true); @SuppressWarnings("rawtypes")
List<ConsistsOf> consistsOfPolimorphicList = resourceRegistryClient.getInstances(ConsistsOf.class, true);
logger.debug("{} are {} : {} ", IsRelatedTo.NAME, consistsOfPolimorphicList.size(), consistsOfPolimorphicList); logger.debug("{} are {} : {} ", IsRelatedTo.NAME, consistsOfPolimorphicList.size(), consistsOfPolimorphicList);
List<Resource> consistsOfNonPolimorphicList = resourceRegistryClient.getInstances(ConsistsOf.class, false); @SuppressWarnings("rawtypes")
List<ConsistsOf> consistsOfNonPolimorphicList = resourceRegistryClient.getInstances(ConsistsOf.class, false);
logger.debug("{} are {} : {} ", IsRelatedTo.NAME, consistsOfNonPolimorphicList.size(), logger.debug("{} are {} : {} ", IsRelatedTo.NAME, consistsOfNonPolimorphicList.size(),
consistsOfNonPolimorphicList); consistsOfNonPolimorphicList);