use of io.restassured.response.ValidatableResponse 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);
}
use of io.restassured.response.ValidatableResponse 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);
}
use of io.restassured.response.ValidatableResponse 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);
}
use of io.restassured.response.ValidatableResponse in project molgenis by molgenis.
the class RestControllerV1APIIT method testGetEntityType.
@Test
public void testGetEntityType() {
ValidatableResponse response = given().log().all().header(X_MOLGENIS_TOKEN, testUserToken).contentType(APPLICATION_JSON).when().get(API_V1 + "V1_API_TypeTestRefAPIV1/meta").then().log().all();
validateGetEntityType(response);
}
use of io.restassured.response.ValidatableResponse 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);
}
Aggregations