use of ai.grakn.concept.SchemaConcept in project grakn by graknlabs.
the class GraqlPrinterTest method testConcept.
@Test
public void testConcept() {
Printer printer = Printers.graql(true);
SchemaConcept concept = rule.tx().admin().getMetaConcept();
String conceptString = printer.graqlString(concept);
assertThat(conceptString, containsString("label"));
assertThat(conceptString, containsString(Schema.MetaSchema.THING.getLabel().getValue()));
assertThat(conceptString, not(containsString("sub")));
assertThat(conceptString, not(containsString("isa")));
}
Aggregations