Added Test
This commit is contained in:
parent
e89481a5f1
commit
e51c635dea
|
@ -34,6 +34,7 @@ import org.gcube.resourcemanagement.model.reference.entities.facets.ContactFacet
|
|||
import org.gcube.resourcemanagement.model.reference.entities.resources.Actor;
|
||||
import org.gcube.resourcemanagement.model.reference.entities.resources.EService;
|
||||
import org.gcube.resourcemanagement.model.reference.entities.resources.RunningPlugin;
|
||||
import org.gcube.resourcemanagement.model.reference.entities.resources.Service;
|
||||
import org.gcube.resourcemanagement.model.reference.properties.ValueSchema;
|
||||
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.Hosts;
|
||||
import org.junit.Test;
|
||||
|
@ -62,6 +63,16 @@ public class SchemaManagementImplTest {
|
|||
logger.debug(json);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void serializeTypeDefinition() throws Exception {
|
||||
Class<? extends Resource> clz = Service.class;
|
||||
String json = TypeMapper.serializeType(clz);
|
||||
logger.debug(json);
|
||||
Type t = TypeMapper.deserializeTypeDefinition(json);
|
||||
String typeJson = TypeMapper.serializeTypeDefinition(t);
|
||||
logger.debug(typeJson);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void registerFacetSchema() throws Exception {
|
||||
Class<? extends Facet> clz = ContactFacet.class;
|
||||
|
|
Loading…
Reference in New Issue