diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/types/SchemaManagementImplTest.java b/src/test/java/org/gcube/informationsystem/resourceregistry/types/SchemaManagementImplTest.java index 5cea6d9..c1fb987 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/types/SchemaManagementImplTest.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/types/SchemaManagementImplTest.java @@ -8,7 +8,6 @@ import java.util.List; import org.gcube.informationsystem.base.reference.AccessType; import org.gcube.informationsystem.base.reference.ISManageable; import org.gcube.informationsystem.base.reference.properties.BaseProperty; -import org.gcube.informationsystem.base.reference.relations.BaseRelation; import org.gcube.informationsystem.context.reference.entities.Context; import org.gcube.informationsystem.model.reference.entities.Entity; import org.gcube.informationsystem.model.reference.entities.Facet; @@ -21,8 +20,6 @@ import org.gcube.informationsystem.model.reference.relations.IsRelatedTo; import org.gcube.informationsystem.model.reference.relations.Relation; import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaAlreadyPresentException; import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.SchemaException; -import org.gcube.informationsystem.resourceregistry.types.SchemaManagement; -import org.gcube.informationsystem.resourceregistry.types.SchemaManagementImpl; import org.gcube.informationsystem.types.TypeBinder; import org.gcube.informationsystem.types.impl.entities.EntityTypeDefinitionImpl; import org.gcube.informationsystem.types.impl.properties.PropertyTypeDefinitionImpl; @@ -261,8 +258,8 @@ public class SchemaManagementImplTest { @Test public void createRelationTypeDefinitionType() throws Exception { - @SuppressWarnings("unchecked") - RelationTypeDefinition relationTypeDefinition = new RelationTypeDefinitionImpl((Class>) RelationTypeDefinition.class); + @SuppressWarnings({"unchecked", "rawtypes"}) + RelationTypeDefinition relationTypeDefinition = new RelationTypeDefinitionImpl(RelationTypeDefinition.class); SchemaManagement schemaManagement = new SchemaManagementImpl(); ((SchemaManagementImpl) schemaManagement).setTypeName(RelationTypeDefinition.NAME);