Search in sources :

Example 1 with RestDocumentationFilter

use of org.springframework.restdocs.restassured3.RestDocumentationFilter in project spring-cloud-netflix by spring-cloud.

the class AbstractDocumentationTests method document.

protected RequestSpecification document(Object body) {
    RestDocumentationFilter filter = filter("{method-name}");
    RequestSpecification assured = RestAssured.given(spec(body, filter));
    return assured.filter(filter);
}
Also used : RestDocumentationFilter(org.springframework.restdocs.restassured3.RestDocumentationFilter) RequestSpecification(io.restassured.specification.RequestSpecification)

Example 2 with RestDocumentationFilter

use of org.springframework.restdocs.restassured3.RestDocumentationFilter in project spring-cloud-netflix by spring-cloud.

the class AbstractDocumentationTests method document.

protected RequestSpecification document(String name, Object body) {
    RestDocumentationFilter filter = filter(name);
    RequestSpecification assured = RestAssured.given(spec(body, filter));
    return assured.filter(filter);
}
Also used : RestDocumentationFilter(org.springframework.restdocs.restassured3.RestDocumentationFilter) RequestSpecification(io.restassured.specification.RequestSpecification)

Aggregations

RequestSpecification (io.restassured.specification.RequestSpecification)2 RestDocumentationFilter (org.springframework.restdocs.restassured3.RestDocumentationFilter)2