Fixed tests
This commit is contained in:
parent
ef7d845903
commit
fb19b25664
|
@ -4,7 +4,6 @@ import java.util.List;
|
||||||
|
|
||||||
import org.gcube.informationsystem.model.reference.entities.Facet;
|
import org.gcube.informationsystem.model.reference.entities.Facet;
|
||||||
import org.gcube.informationsystem.types.TypeMapper;
|
import org.gcube.informationsystem.types.TypeMapper;
|
||||||
import org.gcube.informationsystem.types.annotations.Abstract;
|
|
||||||
import org.gcube.informationsystem.types.reference.Type;
|
import org.gcube.informationsystem.types.reference.Type;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
@ -26,19 +25,6 @@ public class ResourceRegistrySchemaClientTest extends ContextTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Abstract
|
|
||||||
interface AuxFacet extends Facet {
|
|
||||||
public static final String NAME = "aux"; //AuxFacet.class.getSimpleName();
|
|
||||||
public static final String DESCRIPTION = "This is AuxFacet used for Test";
|
|
||||||
public static final String VERSION = "1.0.0";
|
|
||||||
}
|
|
||||||
|
|
||||||
// @Test
|
|
||||||
public void testCreate() throws Exception {
|
|
||||||
Type td = resourceRegistrySchemaClient.create(AuxFacet.class);
|
|
||||||
logger.debug("{}", td);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testRead() throws Exception {
|
public void testRead() throws Exception {
|
||||||
List<Type> types = resourceRegistrySchemaClient.read(Facet.class, true);
|
List<Type> types = resourceRegistrySchemaClient.read(Facet.class, true);
|
||||||
|
@ -54,8 +40,7 @@ public class ResourceRegistrySchemaClientTest extends ContextTest {
|
||||||
|
|
||||||
|
|
||||||
Assert.assertTrue(gotFacetDefinition.getName().compareTo(facetDefinition.getName())==0);
|
Assert.assertTrue(gotFacetDefinition.getName().compareTo(facetDefinition.getName())==0);
|
||||||
// Uncomment when OrientDB team solve bug https://github.com/orientechnologies/orientdb/issues/8730
|
Assert.assertTrue(gotFacetDefinition.getDescription().compareTo(facetDefinition.getDescription())==0);
|
||||||
//Assert.assertTrue(gotFacetDefinition.getDescription().compareTo(facetDefinition.getDescription())==0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue