Search in sources :

Example 1 with EntityType

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));
}
Also used : Response(com.jayway.restassured.response.Response) EntityType(ai.grakn.engine.controller.response.EntityType) Test(org.junit.Test)

Aggregations

EntityType (ai.grakn.engine.controller.response.EntityType)1 Response (com.jayway.restassured.response.Response)1 Test (org.junit.Test)1