From 914f267c298c987f9dbc69f6d9f83be26547de4a Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Wed, 30 Oct 2019 12:43:30 +0100 Subject: [PATCH] All tests are back to normal --- .../er/relation/RelationManagement.java | 36 ++++++++++--------- .../schema/SchemaManagementImplTest.java | 10 ++---- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/er/relation/RelationManagement.java b/src/main/java/org/gcube/informationsystem/resourceregistry/er/relation/RelationManagement.java index 2454983..8eee850 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/er/relation/RelationManagement.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/er/relation/RelationManagement.java @@ -21,6 +21,7 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.context.Conte import org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationNotFoundException; import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException; import org.gcube.informationsystem.resourceregistry.context.ContextUtility; +import org.gcube.informationsystem.resourceregistry.context.IsParentOfManagement; import org.gcube.informationsystem.resourceregistry.context.security.SecurityContext; import org.gcube.informationsystem.resourceregistry.context.security.SecurityContext.PermissionMode; import org.gcube.informationsystem.resourceregistry.er.ERManagement; @@ -312,7 +313,9 @@ public abstract class RelationManagement> typeDefinitions = mapper.readValue(list, - new TypeReference>>() { - }); + @SuppressWarnings("rawtypes") + List typeDefinitions = ISMapper.unmarshalList(TypeDefinition.class, list); logger.debug("{}", typeDefinitions); list = schemaManagement.read(Entity.NAME, includeSubTypes);