use of ai.grakn.engine.controller.response.EntityType in project grakn by graknlabs.
the class ConceptControllerTest method whenGettingSubsOfSchemaConcept_EnsureSubsAreReturned.
@Test
public void whenGettingSubsOfSchemaConcept_EnsureSubsAreReturned() throws IOException {
Response response = RestAssured.when().get(entityTypeWrapper.subs().id());
assertEquals(SC_OK, response.getStatusCode());
EntityType[] subs = response.jsonPath().getObject("subs", EntityType[].class);
assertThat(subs, arrayContainingInAnyOrder(entityTypeWrapper, entityTypeSubWrapper));
}
Aggregations