Search in sources :

Example 1 with EntityTypeRequest

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

the class RestControllerV1APIIT method testRetrieveEntityAttributeMetaPost.

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

Example 2 with EntityTypeRequest

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

the class RestControllerV1APIIT method testGetEntityTypePost.

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

Example 3 with EntityTypeRequest

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

the class RestControllerV1APIIT method testRetrieveEntityPost.

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

Aggregations

ValidatableResponse (io.restassured.response.ValidatableResponse)3 EntityTypeRequest (org.molgenis.data.rest.EntityTypeRequest)3 Test (org.testng.annotations.Test)3