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 34c86dd..2ccb321 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/types/SchemaManagementImplTest.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/types/SchemaManagementImplTest.java @@ -26,7 +26,7 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.schema.Schema import org.gcube.informationsystem.types.TypeMapper; import org.gcube.informationsystem.types.reference.Type; import org.gcube.informationsystem.types.reference.relations.RelationType; -import org.gcube.informationsystem.utils.TypeVersion; +import org.gcube.informationsystem.utils.Version; import org.gcube.resourcemanagement.model.reference.entities.facets.AccessPointFacet; import org.gcube.resourcemanagement.model.reference.entities.facets.ContactFacet; import org.gcube.resourcemanagement.model.reference.entities.resources.Actor; @@ -289,13 +289,13 @@ public class SchemaManagementImplTest extends ContextTest { Assert.assertTrue(typeManaged.getSuperClasses().containsAll(type.getSuperClasses())); - Map typeChangelog = type.getChangelog(); - Map typeManagedChangelog = typeManaged.getChangelog(); + Map typeChangelog = type.getChangelog(); + Map typeManagedChangelog = typeManaged.getChangelog(); Assert.assertTrue(typeChangelog.keySet().containsAll(typeManagedChangelog.keySet())); Assert.assertTrue(typeManagedChangelog.keySet().containsAll(typeChangelog.keySet())); - for(TypeVersion typeVersion : typeChangelog.keySet()) { + for(Version typeVersion : typeChangelog.keySet()) { Assert.assertTrue(typeChangelog.get(typeVersion).compareTo(typeManagedChangelog.get(typeVersion))==0); } diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/types/TestFacet.java b/src/test/java/org/gcube/informationsystem/resourceregistry/types/TestFacet.java index 80826ef..1373424 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/types/TestFacet.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/types/TestFacet.java @@ -8,7 +8,7 @@ import org.gcube.informationsystem.model.reference.entities.Facet; import org.gcube.informationsystem.types.annotations.ISProperty; import org.gcube.informationsystem.types.reference.Change; import org.gcube.informationsystem.types.reference.TypeMetadata; -import org.gcube.informationsystem.utils.TypeVersion; +import org.gcube.informationsystem.utils.Version; import org.gcube.resourcemanagement.model.impl.entities.facets.SimpleFacetImpl; /** @@ -18,9 +18,9 @@ import org.gcube.resourcemanagement.model.impl.entities.facets.SimpleFacetImpl; @TypeMetadata( name = TestFacet.NAME, description = "TestFacet 1.0.0", - version = TypeVersion.MINIMAL_VERSION_STRING + version = Version.MINIMAL_VERSION_STRING ) -@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION) +@Change(version = Version.MINIMAL_VERSION_STRING, description = Version.MINIMAL_VERSION_DESCRIPTION) public interface TestFacet extends Facet { public static final String NAME = "TestFacet"; // SimpleFacet.class.getSimpleName(); diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/types/TestFacet1_0_1.java b/src/test/java/org/gcube/informationsystem/resourceregistry/types/TestFacet1_0_1.java index a06382e..ba641e7 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/types/TestFacet1_0_1.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/types/TestFacet1_0_1.java @@ -8,7 +8,7 @@ import org.gcube.informationsystem.model.reference.entities.Facet; import org.gcube.informationsystem.types.annotations.ISProperty; import org.gcube.informationsystem.types.reference.Change; import org.gcube.informationsystem.types.reference.TypeMetadata; -import org.gcube.informationsystem.utils.TypeVersion; +import org.gcube.informationsystem.utils.Version; import org.gcube.resourcemanagement.model.impl.entities.facets.SimpleFacetImpl; /** @@ -20,7 +20,7 @@ import org.gcube.resourcemanagement.model.impl.entities.facets.SimpleFacetImpl; description = "TestFacet 1.0.1", version = "1.0.1" ) -@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION) +@Change(version = Version.MINIMAL_VERSION_STRING, description = Version.MINIMAL_VERSION_DESCRIPTION) @Change(version = "1.0.1", description = "Removed 'name' property, added 'title' property.") public interface TestFacet1_0_1 extends Facet { diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/types/TestFacet1_0_2.java b/src/test/java/org/gcube/informationsystem/resourceregistry/types/TestFacet1_0_2.java index 91fd129..4ffe5fc 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/types/TestFacet1_0_2.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/types/TestFacet1_0_2.java @@ -8,7 +8,7 @@ import org.gcube.informationsystem.model.reference.entities.Facet; import org.gcube.informationsystem.types.annotations.ISProperty; import org.gcube.informationsystem.types.reference.Change; import org.gcube.informationsystem.types.reference.TypeMetadata; -import org.gcube.informationsystem.utils.TypeVersion; +import org.gcube.informationsystem.utils.Version; import org.gcube.resourcemanagement.model.impl.entities.facets.SimpleFacetImpl; /** @@ -20,7 +20,7 @@ import org.gcube.resourcemanagement.model.impl.entities.facets.SimpleFacetImpl; description = "TestFacet 1.0.2", version = "1.0.2" ) -@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION) +@Change(version = Version.MINIMAL_VERSION_STRING, description = Version.MINIMAL_VERSION_DESCRIPTION) @Change(version = "1.0.1", description = "Removed 'name' property, added 'title' property.") @Change(version = "1.0.2", description = "Restored 'name' property. Set 'title' property as not mandatory and nullable.") public interface TestFacet1_0_2 extends Facet {