From 2b0289fb5bfb2f5864bec6506bf67e6a2a5daa23 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Tue, 4 Feb 2020 09:31:19 +0100 Subject: [PATCH] TypeBinder has been renamed to TypeMapper --- .../model/discovery/EntityDiscoveryTest.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/test/java/org/gcube/informationsystem/model/discovery/EntityDiscoveryTest.java b/src/test/java/org/gcube/informationsystem/model/discovery/EntityDiscoveryTest.java index 7250b0b..4b4db35 100644 --- a/src/test/java/org/gcube/informationsystem/model/discovery/EntityDiscoveryTest.java +++ b/src/test/java/org/gcube/informationsystem/model/discovery/EntityDiscoveryTest.java @@ -9,7 +9,7 @@ import org.gcube.informationsystem.base.reference.Element; import org.gcube.informationsystem.base.reference.entities.EntityElement; import org.gcube.informationsystem.base.reference.properties.PropertyElement; import org.gcube.informationsystem.base.reference.relations.RelationElement; -import org.gcube.informationsystem.types.TypeBinder; +import org.gcube.informationsystem.types.TypeMapper; import org.gcube.informationsystem.types.reference.Type; import org.gcube.informationsystem.types.reference.entities.EntityType; import org.gcube.informationsystem.types.reference.properties.PropertyDefinition; @@ -87,25 +87,25 @@ public class EntityDiscoveryTest { propertyDiscovery.discover(); for(Class propertyClass : propertyDiscovery.getDiscovered()) { - String json = TypeBinder.serializeType(propertyClass); + String json = TypeMapper.serializeType(propertyClass); logger.info("{}", json); - Type typeDefinition = TypeBinder.deserializeTypeDefinition(json); + Type typeDefinition = TypeMapper.deserializeTypeDefinition(json); logger.info("{}", ElementMapper.marshal(typeDefinition)); } } @Test public void testEntityTypeDefinitionSerialization() throws Exception { - logger.info("{}", TypeBinder.serializeType(EntityType.class)); + logger.info("{}", TypeMapper.serializeType(EntityType.class)); } @Test public void testDefinitionSerialization() throws Exception { - logger.info("{}", TypeBinder.serializeType(Type.class)); - logger.info("{}", TypeBinder.serializeType(EntityType.class)); - logger.info("{}", TypeBinder.serializeType(RelationType.class)); - logger.info("{}", TypeBinder.serializeType(PropertyType.class)); - logger.info("{}", TypeBinder.serializeType(PropertyDefinition.class)); + logger.info("{}", TypeMapper.serializeType(Type.class)); + logger.info("{}", TypeMapper.serializeType(EntityType.class)); + logger.info("{}", TypeMapper.serializeType(RelationType.class)); + logger.info("{}", TypeMapper.serializeType(PropertyType.class)); + logger.info("{}", TypeMapper.serializeType(PropertyDefinition.class)); } @Test @@ -115,7 +115,7 @@ public class EntityDiscoveryTest { entityDiscovery.discover(); for(Class entity : entityDiscovery.getDiscovered()) { - logger.info("{}", TypeBinder.serializeType(entity)); + logger.info("{}", TypeMapper.serializeType(entity)); } } @@ -127,7 +127,7 @@ public class EntityDiscoveryTest { relationDiscovery.discover(); for(@SuppressWarnings("rawtypes") Class relation : relationDiscovery.getDiscovered()) { - logger.info("{}", TypeBinder.serializeType(relation)); + logger.info("{}", TypeMapper.serializeType(relation)); } }