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());
}
Aggregations