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