Search in sources :

Example 1 with EntityCollectionRequest

use of org.molgenis.data.rest.EntityCollectionRequest in project molgenis by molgenis.

the class RestControllerV1APIIT method testRetrieveEntityCollectionResponsePost.

@Test
public void testRetrieveEntityCollectionResponsePost() {
    ValidatableResponse response = given().log().all().header(X_MOLGENIS_TOKEN, testUserToken).contentType(APPLICATION_JSON).body(new EntityCollectionRequest()).when().post(API_V1 + "V1_API_Items?_method=GET").then().log().all();
    validateRetrieveEntityCollectionResponse(response);
}
Also used : ValidatableResponse(io.restassured.response.ValidatableResponse) EntityCollectionRequest(org.molgenis.data.rest.EntityCollectionRequest) Test(org.testng.annotations.Test)

Example 2 with EntityCollectionRequest

use of org.molgenis.data.rest.EntityCollectionRequest in project molgenis by molgenis.

the class RestControllerV1APIIT method testRetrieveEntityAttributePost.

@Test
public void testRetrieveEntityAttributePost() {
    ValidatableResponse response = given().log().all().header(X_MOLGENIS_TOKEN, testUserToken).contentType(APPLICATION_JSON).body(new EntityCollectionRequest()).when().post(API_V1 + "V1_API_TypeTestAPIV1/1/xxref_value?_method=GET").then().log().all();
    validateRetrieveEntityAttribute(response);
}
Also used : ValidatableResponse(io.restassured.response.ValidatableResponse) EntityCollectionRequest(org.molgenis.data.rest.EntityCollectionRequest) Test(org.testng.annotations.Test)

Aggregations

ValidatableResponse (io.restassured.response.ValidatableResponse)2 EntityCollectionRequest (org.molgenis.data.rest.EntityCollectionRequest)2 Test (org.testng.annotations.Test)2