use of io.restassured.response.ValidatableResponse in project molgenis by molgenis.
the class RestControllerV1APIIT method testRetrieveEntityAttributeMeta.
@Test
public void testRetrieveEntityAttributeMeta() {
ValidatableResponse response = given().log().all().header(X_MOLGENIS_TOKEN, testUserToken).contentType(APPLICATION_JSON).when().get(API_V1 + "V1_API_TypeTestRefAPIV1/meta/value").then().log().all();
validateRetrieveEntityAttributeMeta(response);
}
use of io.restassured.response.ValidatableResponse in project molgenis by molgenis.
the class RestControllerV1APIIT method testRetrieveEntityCollectionResponse.
@Test
public void testRetrieveEntityCollectionResponse() {
ValidatableResponse response = given().log().all().header(X_MOLGENIS_TOKEN, testUserToken).contentType(APPLICATION_JSON).when().get(API_V1 + "V1_API_Items").then().log().all();
validateRetrieveEntityCollectionResponse(response);
}
use of io.restassured.response.ValidatableResponse in project molgenis by molgenis.
the class RestControllerV1APIIT method testRetrieveEntityAttribute.
@Test
public void testRetrieveEntityAttribute() {
ValidatableResponse response = given().log().all().header(X_MOLGENIS_TOKEN, testUserToken).contentType(APPLICATION_JSON).when().get(API_V1 + "V1_API_TypeTestAPIV1/1/xxref_value").then().log().all();
validateRetrieveEntityAttribute(response);
}
use of io.restassured.response.ValidatableResponse in project molgenis by molgenis.
the class RestControllerV2APIIT method testRetrieveEntityIncludingCategories.
@Test
public void testRetrieveEntityIncludingCategories() {
ValidatableResponse response = given().log().all().header(X_MOLGENIS_TOKEN, testUserToken).param("includeCategories", newArrayList("true")).param("attrs", newArrayList("xcategorical_value")).get(API_V2 + "V2_API_TypeTestAPIV2/1").then().log().all();
response.statusCode(OKE);
response.body("_meta.attributes[0].categoricalOptions.id", Matchers.hasItems("ref1", "ref2", "ref3"));
}
use of io.restassured.response.ValidatableResponse in project molgenis by molgenis.
the class RestControllerV2APIIT method testRetrieveEntityWithAttributeFilterPost.
@Test
public void testRetrieveEntityWithAttributeFilterPost() {
ValidatableResponse response = given().log().all().header(X_MOLGENIS_TOKEN, testUserToken).param("attrs", newArrayList("label")).post(API_V2 + "V2_API_TypeTestRefAPIV2/ref1?_method=GET").then().log().all();
validateRetrieveEntityWithAttributeFilter(response);
}
Aggregations