Fixing tests

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158408 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-11-13 11:52:53 +00:00
parent 3d93e7ea0a
commit e4bcd8f1b9
1 changed files with 6 additions and 5 deletions

View File

@ -5,6 +5,7 @@ package org.gcube.informationsystem.resourceregistry.schema;
import java.util.List;
import org.gcube.informationsystem.model.ISManageable;
import org.gcube.informationsystem.model.embedded.Embedded;
import org.gcube.informationsystem.model.embedded.Header;
import org.gcube.informationsystem.model.entity.Entity;
@ -35,7 +36,7 @@ public class SchemaManagementImplTest {
@Test
public void registerEmbeddedTypeSchema() throws Exception {
Class<?> clz = Header.class;
Class<? extends Embedded> clz = Header.class;
String json = TypeBinder.serializeType(clz);
logger.debug(json);
//new SchemaManagementImpl().create(json, AccessType.EMBEDDED);
@ -49,7 +50,7 @@ public class SchemaManagementImplTest {
@Test
public void registerFacetSchema() throws Exception {
Class<?> clz = ContactFacet.class;
Class<? extends Facet> clz = ContactFacet.class;
String json = TypeBinder.serializeType(clz);
TypeBinder.deserializeTypeDefinition(json);
}
@ -65,7 +66,7 @@ public class SchemaManagementImplTest {
@Test
public void registerEntityTypeSchema() throws Exception {
Class<?> clz = Entity.class;
Class<? extends Entity> clz = Entity.class;
String json = TypeBinder.serializeType(clz);
logger.trace(json);
// new SchemaManagementImpl().registerEntitySchema(json);
@ -73,7 +74,7 @@ public class SchemaManagementImplTest {
@Test
public void registerResourceSchema() throws Exception {
Class<?> clz = Resource.class;
Class<? extends Resource> clz = Resource.class;
String json = TypeBinder.serializeType(clz);
logger.info(json);
// new SchemaManagementImpl().registerFacetSchema(json);
@ -87,7 +88,7 @@ public class SchemaManagementImplTest {
@Test
public void registerRelation() throws Exception {
Class<?> clz = Hosts.class;
Class<? extends ISManageable> clz = Hosts.class;
String json = TypeBinder.serializeType(clz);
logger.trace(json);
// new SchemaManagementImpl().registerFacetSchema(json);