Fixed test to comply with #22003
This commit is contained in:
parent
242d41f07b
commit
487ab87d99
|
@ -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]
|
||||
|
||||
|
|
|
@ -505,7 +505,8 @@ public class ERManagementTest extends ContextTest {
|
|||
|
||||
/* 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);
|
||||
Assert.assertTrue(resourcesList.size() == MAX);
|
||||
|
||||
|
@ -514,10 +515,12 @@ public class ERManagementTest extends ContextTest {
|
|||
|
||||
/* 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);
|
||||
|
||||
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(),
|
||||
consistsOfNonPolimorphicList);
|
||||
|
||||
|
|
Loading…
Reference in New Issue