Search in sources :

Example 1 with CookieFilter

use of io.restassured.filter.cookie.CookieFilter in project dhis2-core by dhis2.

the class ConfigurationExtension method defaultRequestSpecification.

private RequestSpecification defaultRequestSpecification() {
    RequestSpecBuilder requestSpecification = new RequestSpecBuilder();
    requestSpecification.addFilter(new CookieFilter());
    requestSpecification.addFilter(new SessionFilter());
    requestSpecification.addFilter(new AuthFilter());
    requestSpecification.setContentType(ContentType.JSON);
    return requestSpecification.build();
}
Also used : CookieFilter(io.restassured.filter.cookie.CookieFilter) SessionFilter(io.restassured.filter.session.SessionFilter) RequestSpecBuilder(io.restassured.builder.RequestSpecBuilder)

Aggregations

RequestSpecBuilder (io.restassured.builder.RequestSpecBuilder)1 CookieFilter (io.restassured.filter.cookie.CookieFilter)1 SessionFilter (io.restassured.filter.session.SessionFilter)1