Search in sources :

Example 1 with ConnectionConfig

use of io.restassured.config.ConnectionConfig in project rest-assured by rest-assured.

the class StressITest method setUp.

@Before
public void setUp() throws Exception {
    url = "http://localhost:8081/restlet/test";
    component = new Component();
    component.getLogService().setEnabled(true);
    component.getServers().add(Protocol.HTTP, 8081);
    component.getDefaultHost().attach("/restlet", new StressApp());
    component.start();
    RestAssured.config = RestAssuredConfig.config().connectionConfig(new ConnectionConfig().closeIdleConnectionsAfterEachResponse());
}
Also used : Component(org.restlet.Component) ConnectionConfig(io.restassured.config.ConnectionConfig) Before(org.junit.Before)

Aggregations

ConnectionConfig (io.restassured.config.ConnectionConfig)1 Before (org.junit.Before)1 Component (org.restlet.Component)1